all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Andreas Schwab <schwab@linux-m68k.org>
To: Paul Eggert <eggert@cs.ucla.edu>
Cc: 11825@debbugs.gnu.org
Subject: bug#11825: 24.1.50; float-time no longer accepts negative time values
Date: Sun, 08 Jul 2012 11:00:47 +0200	[thread overview]
Message-ID: <m2liiu4og0.fsf@igel.home> (raw)
In-Reply-To: <4FF93637.6060304@cs.ucla.edu> (Paul Eggert's message of "Sun, 08 Jul 2012 00:26:47 -0700")

Paul Eggert <eggert@cs.ucla.edu> writes:

> On 07/07/2012 07:57 PM, Eli Zaretskii wrote:
>> are you saying that a time difference can
>> never be negative on such platforms?
>
> Yes, that's right.

That doesn't make sense.  A difference between two timestamps is always
signed.

>> What about the case tv_sec = 0
>> in both time values and tv_nsec difference is negative?
>
> In that case, timespec_sub returns the
> minimum possible time value, namely zero,
> since time_t is unsigned.

Which just means that timespec_sub is completely broken.  It must not
use struct timespec for its return value.

Andreas.

-- 
Andreas Schwab, schwab@linux-m68k.org
GPG Key fingerprint = 58CA 54C7 6D53 942B 1756  01D3 44D5 214B 8276 4ED5
"And now for something completely different."





  reply	other threads:[~2012-07-08  9:00 UTC|newest]

Thread overview: 15+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-06-30 16:08 bug#11825: 24.1.50; float-time no longer accepts negative time values Eli Zaretskii
2012-07-03 22:56 ` Glenn Morris
2012-07-07  2:11 ` Paul Eggert
2012-07-07  6:57   ` Eli Zaretskii
2012-07-07 20:30     ` Paul Eggert
2012-07-08  2:57       ` Eli Zaretskii
2012-07-08  7:26         ` Paul Eggert
2012-07-08  9:00           ` Andreas Schwab [this message]
2012-07-08 23:03             ` Paul Eggert
2012-07-08 23:37               ` Juanma Barranquero
2012-07-09  0:21                 ` Paul Eggert
2012-07-09  0:57                   ` Juanma Barranquero
2012-07-09  2:56               ` Eli Zaretskii
2012-07-09  3:33                 ` Paul Eggert
2012-07-08 15:32           ` Eli Zaretskii

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=m2liiu4og0.fsf@igel.home \
    --to=schwab@linux-m68k.org \
    --cc=11825@debbugs.gnu.org \
    --cc=eggert@cs.ucla.edu \
    /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.
Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.