Skip to content

Commit ec35ab9

Browse files
apply new cast for unsigned long int
1 parent 0f8784e commit ec35ab9

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

code/logic/test.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -118,7 +118,7 @@ char *fossil_pizza_format_ns(uint64_t ns) {
118118
uint64_t nsec = ns % 1000ULL;
119119
char *buffer = (char *)pizza_sys_memory_alloc(64);
120120
if (buffer) {
121-
snprintf(buffer, 64, "%llu s %llu us %llu ns", (uint64_t)sec, (uint64_t)usec, (uint64_t)nsec);
121+
snprintf(buffer, 64, "%lu s %lu us %lu ns", (unsigned long)sec, (unsigned long)usec, (unsigned long)nsec);
122122
buffer[63] = '\0';
123123
}
124124

0 commit comments

Comments
 (0)