projects
/
fw
/
sdcc
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
fix float overflow checki in printf_fast_f, bug #1525093
[fw/sdcc]
/
device
/
lib
/
time.c
diff --git
a/device/lib/time.c
b/device/lib/time.c
index 576e7688747b1335a5525b4704b6d03192a31a69..8266ab9e69880f58a6aa8496e296e26a2d3a6897 100755
(executable)
--- a/
device/lib/time.c
+++ b/
device/lib/time.c
@@
-197,8
+197,8
@@
time_t mktime(struct tm *timeptr) {
}
}
- seconds+=
timeptr->(
tm_mday-1)*60*60*24L;
- seconds+= timeptr->tm_hour*60*60;
+ seconds+=
(timeptr->
tm_mday-1)*60*60*24L;
+ seconds+= timeptr->tm_hour*60*60
L
;
seconds+= timeptr->tm_min*60;
seconds+= timeptr->tm_sec;
return seconds;