1
0
mirror of https://github.com/rkujawa/rk65c02.git synced 2024-06-15 20:29:32 +00:00

Explicitely cast time to long long ints.

Avoid portability bullshit problems.
This commit is contained in:
Radosław Kujawa 2018-03-27 13:30:33 +02:00
parent 25e62f4be4
commit 9ff0cb26fc

View File

@ -30,8 +30,8 @@ void rk65c02_log(uint8_t l, const char* fmt, ...)
clock_gettime(CLOCK_REALTIME, &t);
fprintf(stderr, "%ld.%ld %s:\t", t.tv_sec, t.tv_nsec,
level_str[l]);
fprintf(stderr, "%lld.%lld %s:\t", (long long int) t.tv_sec,
(long long int) t.tv_nsec, level_str[l]);
va_start(args, fmt);
vfprintf(stderr, fmt, args);