fix the type of CLOCKS_PER_SEC to match new clock_t type
authorRich Felker <dalias@aerifal.cx>
Sat, 8 Jun 2013 15:40:27 +0000 (11:40 -0400)
committerRich 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

index 09a65cf..56ffacf 100644 (file)
@@ -55,7 +55,7 @@ struct tm *localtime (const time_t *);
 char *asctime (const struct tm *);
 char *ctime (const time_t *);
 
-#define CLOCKS_PER_SEC 1000000UL
+#define CLOCKS_PER_SEC 1000000L
 
 
 #if defined(_POSIX_SOURCE) || defined(_POSIX_C_SOURCE) \