summaryrefslogtreecommitdiff
path: root/libc/misc
diff options
context:
space:
mode:
authorBernhard Reutner-Fischer <rep.dot.nop@gmail.com>2008-09-25 16:12:29 +0000
committerBernhard Reutner-Fischer <rep.dot.nop@gmail.com>2008-09-25 16:12:29 +0000
commitcf7b82ed31eaa526c74f8b1af6f0cfec315f1d69 (patch)
tree89fa36012b53990ff1e6c5a1d6c137a5a82df57d /libc/misc
parent959cac182dbf6cd123f352de02e6bcd1bfff8cef (diff)
- cast both times to double for consistency
Diffstat (limited to 'libc/misc')
-rw-r--r--libc/misc/time/time.c2
1 files changed, 1 insertions, 1 deletions
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