diff --git a/newlib/ChangeLog b/newlib/ChangeLog index a73c24713..3d75c12c3 100644 --- a/newlib/ChangeLog +++ b/newlib/ChangeLog @@ -1,3 +1,7 @@ +2003-01-21 Anita Kulkarni + + * libc/time/difftime.c : Typecast the result to double. + 2003-01-20 Christopher Faylor * libc/include/sys/unistd.h: Add rresvport declaration for cygwin. diff --git a/newlib/libc/time/difftime.c b/newlib/libc/time/difftime.c index 93a4f0004..de6ffdb5c 100644 --- a/newlib/libc/time/difftime.c +++ b/newlib/libc/time/difftime.c @@ -40,5 +40,5 @@ _DEFUN (difftime, (tim1, tim2), time_t tim1 _AND time_t tim2) { - return ((double) tim1 - tim2); + return (double)(tim1 - tim2); }