Fixed compare against (time_t)-1

This commit is contained in:
Michael Chisholm 2007-10-30 05:59:06 +00:00
parent 2f4af3f8c0
commit ccb080a071

View File

@ -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);