OSDN Git Service
(root)
/
pf3gnuchains
/
pf3gnuchains3x.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
7f13486
)
2003-01-21 Anita Kulkarni <anitak@kpit.com>
author
jjohnstn
<jjohnstn>
Tue, 21 Jan 2003 19:37:04 +0000
(19:37 +0000)
committer
jjohnstn
<jjohnstn>
Tue, 21 Jan 2003 19:37:04 +0000
(19:37 +0000)
* libc/time/difftime.c : Typecast the result to double.
newlib/ChangeLog
patch
|
blob
|
history
newlib/libc/time/difftime.c
patch
|
blob
|
history
diff --git
a/newlib/ChangeLog
b/newlib/ChangeLog
index
a73c247
..
3d75c12
100644
(file)
--- 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
93a4f00
..
de6ffdb
100644
(file)
--- 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);
}