This is the mail archive of the glibc-bugs@sources.redhat.com mailing list for the glibc project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug libc/487] New: redundant check in mktime.c TEST code


Here's a patch to a minor inefficiency in mktime.c's test code.

2004-10-27  Derek R. Price  <derek@ximbiot.com>

	This change is imported from gnulib.
	* lib/mktime.c (not_equal_tm) [DEBUG]: Remove redundant check.

--- time/mktime.c	2004-10-24 16:23:08 -0700
+++ /tmp/mktime.c	2004-10-27 14:56:59 -0700
@@ -409,7 +409,6 @@ not_equal_tm (const struct tm *a, const 
 	  | (a->tm_mday ^ b->tm_mday)
 	  | (a->tm_mon ^ b->tm_mon)
 	  | (a->tm_year ^ b->tm_year)
-	  | (a->tm_mday ^ b->tm_mday)
 	  | (a->tm_yday ^ b->tm_yday)
 	  | (a->tm_isdst ^ b->tm_isdst));
 }

-- 
           Summary: redundant check in mktime.c TEST code
           Product: glibc
           Version: 2.3.3
            Status: NEW
          Severity: minor
          Priority: P3
         Component: libc
        AssignedTo: gotom at debian dot or dot jp
        ReportedBy: eggert at gnu dot org
                CC: glibc-bugs at sources dot redhat dot com


http://sources.redhat.com/bugzilla/show_bug.cgi?id=487

------- You are receiving this mail because: -------
You are on the CC list for the bug, or are watching someone who is.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]