From b8838e6f7574b42e83c96a008515e41da8c4a87a Mon Sep 17 00:00:00 2001 From: Jeff Johnston Date: Tue, 21 Jan 2003 19:37:04 +0000 Subject: [PATCH] 2003-01-21 Anita Kulkarni * libc/time/difftime.c : Typecast the result to double. --- newlib/ChangeLog | 4 ++++ newlib/libc/time/difftime.c | 2 +- 2 files changed, 5 insertions(+), 1 deletion(-) 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); }