mirror of
https://github.com/Tha14/toxic.git
synced 2024-12-27 19:03:24 +01:00
Cast time to "time_t"
This commit is contained in:
parent
78af10fa1f
commit
cb93c6ec65
@ -55,7 +55,7 @@ struct tm *get_time(void)
|
||||
{
|
||||
struct tm *timeinfo;
|
||||
uint64_t t = get_unix_time();
|
||||
timeinfo = localtime(&t);
|
||||
timeinfo = localtime((const time_t*)&t);
|
||||
return timeinfo;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user