mirror of
https://sourceware.org/git/glibc.git
synced 2025-08-01 10:06:57 +03:00
Replace %ld with %jd and cast to intmax_t
This commit is contained in:
@ -28,8 +28,8 @@ main (int argc, char ** argv)
|
||||
while (!gotit);
|
||||
stop = clock ();
|
||||
|
||||
printf ("%ld clock ticks per second (start=%ld,stop=%ld)\n",
|
||||
stop - start, start, stop);
|
||||
printf ("%jd clock ticks per second (start=%jd,stop=%jd)\n",
|
||||
(intmax_t) (stop - start), (intmax_t) start, (intmax_t) stop);
|
||||
printf ("CLOCKS_PER_SEC=%ld, sysconf(_SC_CLK_TCK)=%ld\n",
|
||||
CLOCKS_PER_SEC, sysconf(_SC_CLK_TCK));
|
||||
return 0;
|
||||
|
Reference in New Issue
Block a user