Fixed possible loss of data warning #4677
This commit is contained in:
parent
a5c865913f
commit
bfc3ac340f
|
@ -264,7 +264,7 @@ FileLogOutputter::write(ELevel level, const char *message)
|
||||||
m_handle << message << std::endl;
|
m_handle << message << std::endl;
|
||||||
|
|
||||||
// when file size exceeds limits, move to 'old log' filename.
|
// 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)) {
|
if (p > (kFileSizeLimit * 1024)) {
|
||||||
moveFile = true;
|
moveFile = true;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue