No need to convert int to long to int
authorH.Merijn Brand <h.m.brand@xs4all.nl>
Fri, 7 Dec 2018 13:43:37 +0000 (14:43 +0100)
committerJames E Keenan <jkeenan@cpan.org>
Fri, 7 Dec 2018 23:09:23 +0000 (23:09 +0000)
Beyond that, I agree with this branch

Signed-off-by: James E Keenan <jkeenan@cpan.org>
Porting/timecheck.c

index 6ed7007..87a252d 100644 (file)
@@ -136,7 +136,7 @@ int main (int argc, char *argv[])
 
     opt_v++;
     printf ("======================\n");
-    printf ("Sizeof time_t = %ld\n", (long)(i = sizeof (time_t)));
+    printf ("Sizeof time_t = %d\n", (i = sizeof (time_t)));
     printf ("gmtime () boundaries:\n");
     gm_check (gm_max,    69, 0x7fffffff);
     gm_check (gm_min, -1900,         70);