From cf7b82ed31eaa526c74f8b1af6f0cfec315f1d69 Mon Sep 17 00:00:00 2001 From: Bernhard Reutner-Fischer Date: Thu, 25 Sep 2008 16:12:29 +0000 Subject: - cast both times to double for consistency --- libc/misc/time/time.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libc/misc/time/time.c b/libc/misc/time/time.c index ed135c580..97fbad560 100644 --- a/libc/misc/time/time.c +++ b/libc/misc/time/time.c @@ -531,7 +531,7 @@ double difftime(time_t time1, time_t time0) #if (LONG_MAX >> DBL_MANT_DIG) == 0 /* time_t fits in the mantissa of a double. */ - return ((double) time1) - time0; + return (double)time1 - (double)time0; #elif ((LONG_MAX >> DBL_MANT_DIG) >> DBL_MANT_DIG) == 0 -- cgit v1.2.3