Skip to content

Commit cd081f3

Browse files
committedMar 30, 2024
Use unsigned long.
1 parent 1e8a58c commit cd081f3

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed
 

‎timeutil.c

+1-1
Original file line numberDiff line numberDiff line change
@@ -51,6 +51,6 @@ void printTimeString()
5151
abort();
5252
}
5353

54-
snprintf(&buffer[charsWritten], 8, ".%06ld", (long)tv.tv_usec);
54+
snprintf(&buffer[charsWritten], 8, ".%06lu", (unsigned long)tv.tv_usec);
5555
printf("%s", buffer);
5656
}

0 commit comments

Comments
 (0)