Fixed possible loss of data warning #4677

This commit is contained in:
Jerry (Xinyu Hou) 2015-07-17 11:11:00 -07:00
parent a5c865913f
commit bfc3ac340f

View File

@ -264,7 +264,7 @@ FileLogOutputter::write(ELevel level, const char *message)
m_handle << message << std::endl;
// when file size exceeds limits, move to 'old log' filename.
int p = m_handle.tellp();
size_t p = m_handle.tellp();
if (p > (kFileSizeLimit * 1024)) {
moveFile = true;
}