Explorar el Código

- cast both times to double for consistency

Bernhard Reutner-Fischer hace 16 años
padre
commit
cf7b82ed31
Se han modificado 1 ficheros con 1 adiciones y 1 borrados
  1. 1 1
      libc/misc/time/time.c

+ 1 - 1
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