mirror of
https://github.com/debauchee/barrier.git
synced 2026-02-12 06:35:04 +08:00
Fixed possible loss of data warning #4677
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user