projects
/
oweals
/
musl.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
ea200e3
)
fix the type of CLOCKS_PER_SEC to match new clock_t type
author
Rich Felker
<dalias@aerifal.cx>
Sat, 8 Jun 2013 15:40:27 +0000
(11:40 -0400)
committer
Rich Felker
<dalias@aerifal.cx>
Sat, 8 Jun 2013 15:40:27 +0000
(11:40 -0400)
originally it was right on 32-bit archs and wrong on 64-bit, but after
recent changes it was wrong everywhere. with this commit, it's now
right everywhere.
include/time.h
patch
|
blob
|
history
diff --git
a/include/time.h
b/include/time.h
index 09a65cff16759ae02263a9ed58aae9240c5e6683..56ffacf5109ba2120d33fcfd59efbfe5d2faa270 100644
(file)
--- a/
include/time.h
+++ b/
include/time.h
@@
-55,7
+55,7
@@
struct tm *localtime (const time_t *);
char *asctime (const struct tm *);
char *ctime (const time_t *);
-#define CLOCKS_PER_SEC 1000000
U
L
+#define CLOCKS_PER_SEC 1000000L
#if defined(_POSIX_SOURCE) || defined(_POSIX_C_SOURCE) \