2003-01-21 Anita Kulkarni <anitak@kpit.com>

* libc/time/difftime.c : Typecast the result to double.
This commit is contained in:
Jeff Johnston 2003-01-21 19:37:04 +00:00
parent 57394495e2
commit b8838e6f75
2 changed files with 5 additions and 1 deletions

View 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.

View File

@ -40,5 +40,5 @@ _DEFUN (difftime, (tim1, tim2),
time_t tim1 _AND
time_t tim2)
{
return ((double) tim1 - tim2);
return (double)(tim1 - tim2);
}