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
1 changed files with 1 additions and 1 deletions

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;
}