]> sourceware.org Git - newlib-cygwin.git/commitdiff
2003-01-21 Anita Kulkarni <anitak@kpit.com>
authorJeff Johnston <jjohnstn@redhat.com>
Tue, 21 Jan 2003 19:37:04 +0000 (19:37 +0000)
committerJeff Johnston <jjohnstn@redhat.com>
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 a73c2471318528f97d2d558bc6278d490cc73a0a..3d75c12c356dd7bfc8da945385ef72f58656c269 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 93a4f00048dc7ca2448182d34f297c02c034fdf0..de6ffdb5c740951d4ffb95a38549322cb2b0fa88 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);
 }
This page took 0.04572 seconds and 5 git commands to generate.