]> Git Repo - uclibc-ng.git/commitdiff
- cast both times to double for consistency
authorBernhard Reutner-Fischer <[email protected]>
Thu, 25 Sep 2008 16:12:29 +0000 (16:12 -0000)
committerBernhard Reutner-Fischer <[email protected]>
Thu, 25 Sep 2008 16:12:29 +0000 (16:12 -0000)
libc/misc/time/time.c

index ed135c580b77bdf4bc6cc4c90b6577bb1a8d8e62..97fbad5608e7d4c825a0ecf17a4f037499515673 100644 (file)
@@ -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
 
This page took 0.03222 seconds and 4 git commands to generate.