[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
bug#11825: 24.1.50; float-time no longer accepts negative time values
From: |
Andreas Schwab |
Subject: |
bug#11825: 24.1.50; float-time no longer accepts negative time values |
Date: |
Sun, 08 Jul 2012 11:00:47 +0200 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/24.1 (gnu/linux) |
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."
- bug#11825: 24.1.50; float-time no longer accepts negative time values, Glenn Morris, 2012/07/03
- bug#11825: 24.1.50; float-time no longer accepts negative time values, Paul Eggert, 2012/07/06
- bug#11825: 24.1.50; float-time no longer accepts negative time values, Eli Zaretskii, 2012/07/07
- bug#11825: 24.1.50; float-time no longer accepts negative time values, Paul Eggert, 2012/07/07
- bug#11825: 24.1.50; float-time no longer accepts negative time values, Eli Zaretskii, 2012/07/07
- bug#11825: 24.1.50; float-time no longer accepts negative time values, Paul Eggert, 2012/07/08
- bug#11825: 24.1.50; float-time no longer accepts negative time values,
Andreas Schwab <=
- bug#11825: 24.1.50; float-time no longer accepts negative time values, Paul Eggert, 2012/07/08
- bug#11825: 24.1.50; float-time no longer accepts negative time values, Juanma Barranquero, 2012/07/08
- bug#11825: 24.1.50; float-time no longer accepts negative time values, Paul Eggert, 2012/07/08
- bug#11825: 24.1.50; float-time no longer accepts negative time values, Juanma Barranquero, 2012/07/08
- bug#11825: 24.1.50; float-time no longer accepts negative time values, Eli Zaretskii, 2012/07/08
- bug#11825: 24.1.50; float-time no longer accepts negative time values, Paul Eggert, 2012/07/08
- bug#11825: 24.1.50; float-time no longer accepts negative time values, Eli Zaretskii, 2012/07/08