mirror of
https://github.com/debauchee/barrier.git
synced 2024-12-18 08:22:06 +03:00
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;
|
||||
|
||||
// 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;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user