Global: Fix some warnings.

This commit is contained in:
Unknown W. Brackets committed 2017-11-25 14:08:49 -08:00
1 parent 9eccea2d5e
commit bd1ed897cf
6 files changed
+23 -8

No files matched your search

+2 -2
View File
@@ -176,7 +176,7 @@ u32 sceKernelLibcGettimeofday(u32 timeAddr, u32 tzAddr)
std::string KernelTimeNowFormatted() {
time_t emulatedTime = (time_t)start_time + (u32)(CoreTiming::GetGlobalTimeUs() / 1000000ULL);
tm* timePtr = localtime(&emulatedTime);
bool DST = timePtr->tm_isdst;
bool DST = timePtr->tm_isdst != 0;
u8 seconds = timePtr->tm_sec;
u8 minutes = timePtr->tm_min;
u8 hours = timePtr->tm_hour;
@@ -187,4 +187,4 @@ std::string KernelTimeNowFormatted() {
u16 years = timePtr->tm_year + 1900;
std::string timestamp = StringFromFormat("%04d-%02d-%02d_%02d-%02d-%02d", years, months, days, hours, minutes, seconds);
return timestamp;
}
}