OSDN Git Service

2003-01-21 Anita Kulkarni <anitak@kpit.com>
authorjjohnstn <jjohnstn>
Tue, 21 Jan 2003 19:37:04 +0000 (19:37 +0000)
committerjjohnstn <jjohnstn>
Tue, 21 Jan 2003 19:37:04 +0000 (19:37 +0000)
        * libc/time/difftime.c : Typecast the result to double.

newlib/ChangeLog
newlib/libc/time/difftime.c

index a73c247..3d75c12 100644 (file)
@@ -1,3 +1,7 @@
+2003-01-21 Anita Kulkarni  <anitak@kpit.com>
+  
+       * libc/time/difftime.c : Typecast the result to double.
+
 2003-01-20  Christopher Faylor  <cgf@redhat.com>
 
        * libc/include/sys/unistd.h: Add rresvport declaration for cygwin.
index 93a4f00..de6ffdb 100644 (file)
@@ -40,5 +40,5 @@ _DEFUN (difftime, (tim1, tim2),
        time_t tim1 _AND
        time_t tim2)
 {
-  return ((double) tim1 - tim2);
+  return (double)(tim1 - tim2);
 }