public
/
ack.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
6df0ecd
)
mktime() did not work for 2-byte machines
author
ceriel
<none@none>
Tue, 5 Jun 1990 12:07:28 +0000
(12:07 +0000)
committer
ceriel
<none@none>
Tue, 5 Jun 1990 12:07:28 +0000
(12:07 +0000)
lang/cem/libcc.ansi/time/mktime.c
patch
|
blob
|
history
diff --git
a/lang/cem/libcc.ansi/time/mktime.c
b/lang/cem/libcc.ansi/time/mktime.c
index
597f104
..
9ea4ec6
100644
(file)
--- a/
lang/cem/libcc.ansi/time/mktime.c
+++ b/
lang/cem/libcc.ansi/time/mktime.c
@@
-101,7
+101,7
@@
mktime(register struct tm *timep)
timep->tm_yday = yday;
timep->tm_wday = (day + 4) % 7; /* day 0 was thursday (4) */
- seconds = ((timep->tm_hour * 60
) + timep->tm_min) * 60
+ timep->tm_sec;
+ seconds = ((timep->tm_hour * 60
L) + timep->tm_min) * 60L
+ timep->tm_sec;
if ((TIME_MAX - seconds) / SECS_DAY < day) overflow++;
seconds += day * SECS_DAY;