CVSROOT: /cvs Module name: src Changes by: [email protected] 2026/04/22 19:08:47
Modified files:
lib/libc/time : difftime.c
Log message:
Fix difftime() result when it is passed a negative value
We need to cast the result of bitwise AND to time_t before the cast
to double in the HI and LO macros. Otherwise, we get a very large
positive floating point value instead of a negative value.
Reported by Xuntao Chi
