@@ -1239,7 +1239,7 @@ bool CLogerManager::PushLog(LoggerId id, int level, const char * log)
12391239 now <<= 32 ;
12401240 now |= ft.dwLowDateTime ;
12411241 now /=10 ;
1242- now -=11644473600000000Ui64 ;
1242+ now -=11644473600000000ULL ;
12431243 now /=1000 ;
12441244 pLog->_time = now/1000 ;
12451245 pLog->_precise = (unsigned int )(now%1000 );
@@ -1253,17 +1253,17 @@ bool CLogerManager::PushLog(LoggerId id, int level, const char * log)
12531253 {
12541254 tm tt = TimeToTm (pLog->_time );
12551255#ifdef WIN32
1256- int ret = _snprintf_s (pLog->_content , LOG4Z_LOG_BUF_SIZE, _TRUNCATE, " %d-%02d-%02d %02d:%02d:%02d.%03d %s %s \r\n " ,
1257- tt.tm_year + 1900 , tt.tm_mon + 1 , tt.tm_mday , tt.tm_hour , tt.tm_min , tt.tm_sec , pLog->_precise ,
1256+ int ret = _snprintf_s (pLog->_content , LOG4Z_LOG_BUF_SIZE, _TRUNCATE, " %d-%02d-%02d %02d:%02d:%02d.%03d %s %s \r\n " ,
1257+ tt.tm_year + 1900 , tt.tm_mon + 1 , tt.tm_mday , tt.tm_hour , tt.tm_min , tt.tm_sec , pLog->_precise ,
12581258 LOG_STRING[pLog->_level ], log);
12591259 if (ret == -1 )
12601260 {
12611261 ret = LOG4Z_LOG_BUF_SIZE - 1 ;
12621262 }
12631263 pLog->_contentLen = ret;
12641264#else
1265- int ret = snprintf (pLog->_content , LOG4Z_LOG_BUF_SIZE, " %d-%02d-%02d %02d:%02d:%02d.%03d %s %s \r\n " ,
1266- tt.tm_year + 1900 , tt.tm_mon + 1 , tt.tm_mday , tt.tm_hour , tt.tm_min , tt.tm_sec , pLog->_precise ,
1265+ int ret = snprintf (pLog->_content , LOG4Z_LOG_BUF_SIZE, " %d-%02d-%02d %02d:%02d:%02d.%03d %s %s \r\n " ,
1266+ tt.tm_year + 1900 , tt.tm_mon + 1 , tt.tm_mday , tt.tm_hour , tt.tm_min , tt.tm_sec , pLog->_precise ,
12671267 LOG_STRING[pLog->_level ], log);
12681268 if (ret == -1 )
12691269 {
0 commit comments