mirror of
https://github.com/wiiu-env/libfat.git
synced 2024-11-22 09:59:18 +01:00
Fixed compare against (time_t)-1
This commit is contained in:
parent
2f4af3f8c0
commit
ccb080a071
@ -57,7 +57,7 @@ u16 _FAT_filetime_getTimeFromRTC (void) {
|
||||
struct tm timeParts;
|
||||
time_t epochTime;
|
||||
|
||||
if (time(&epochTime) == (time)-1) {
|
||||
if (time(&epochTime) == (time_t)-1) {
|
||||
return 0;
|
||||
}
|
||||
localtime_r(&epochTime, &timeParts);
|
||||
@ -84,7 +84,7 @@ u16 _FAT_filetime_getDateFromRTC (void) {
|
||||
struct tm timeParts;
|
||||
time_t epochTime;
|
||||
|
||||
if (time(&epochTime) == (time)-1) {
|
||||
if (time(&epochTime) == (time_t)-1) {
|
||||
return 0;
|
||||
}
|
||||
localtime_r(&epochTime, &timeParts);
|
||||
|
Loading…
Reference in New Issue
Block a user