public inbox for glibc-bugs@sourceware.org
help / color / mirror / Atom feed
From: "eggert at gnu dot org" <sourceware-bugzilla@sources.redhat.com>
To: glibc-bugs@sources.redhat.com
Subject: [Bug libc/487] New: redundant check in mktime.c TEST code
Date: Wed, 27 Oct 2004 22:00:00 -0000	[thread overview]
Message-ID: <20041027220049.487.eggert@gnu.org> (raw)

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.


             reply	other threads:[~2004-10-27 22:00 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2004-10-27 22:00 eggert at gnu dot org [this message]
2004-11-01  0:21 ` [Bug libc/487] " cvs-commit@gcc.gnu.org
2004-11-10 23:55 ` eggert@gnu.org

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20041027220049.487.eggert@gnu.org \
    --to=sourceware-bugzilla@sources.redhat.com \
    --cc=glibc-bugs@sources.redhat.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).