diff options
author | Jeff Johnston <jjohnstn@redhat.com> | 2003-01-21 22:37:04 +0300 |
---|---|---|
committer | Jeff Johnston <jjohnstn@redhat.com> | 2003-01-21 22:37:04 +0300 |
commit | b8838e6f7574b42e83c96a008515e41da8c4a87a (patch) | |
tree | e72394584a20e45e12b1c04cf245b83bd0175aa0 /newlib | |
parent | 57394495e21e9ffe7da9251b26e9cac14d59f708 (diff) |
2003-01-21 Anita Kulkarni <anitak@kpit.com>
* libc/time/difftime.c : Typecast the result to double.
Diffstat (limited to 'newlib')
-rw-r--r-- | newlib/ChangeLog | 4 | ||||
-rw-r--r-- | newlib/libc/time/difftime.c | 2 |
2 files changed, 5 insertions, 1 deletions
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 <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. 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); } |