mirror of
https://github.com/tio/tio.git
synced 2026-05-01 23:07:58 +02:00
Fix implicit cast error on Darwin.
This commit is contained in:
parent
78e7575798
commit
c216f3e979
1 changed files with 1 additions and 1 deletions
|
|
@ -47,7 +47,7 @@ char * current_time(void)
|
|||
|
||||
size_t len = strftime(time_string, sizeof(time_string), "%H:%M:%S", tmp);
|
||||
if (len) {
|
||||
len = snprintf(time_string + len, TIME_STRING_SIZE - len, ".%03ld", tv.tv_usec / 1000);
|
||||
len = snprintf(time_string + len, TIME_STRING_SIZE - len, ".%03ld", (long)tv.tv_usec / 1000);
|
||||
}
|
||||
|
||||
return (len >= 0) && (len < TIME_STRING_SIZE) ? time_string : NULL;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue