From bfc3ac340ffd1eb4a1e4f15846f73d723d589b19 Mon Sep 17 00:00:00 2001 From: "Jerry (Xinyu Hou)" Date: Fri, 17 Jul 2015 11:11:00 -0700 Subject: [PATCH] Fixed possible loss of data warning #4677 --- src/lib/base/log_outputters.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/lib/base/log_outputters.cpp b/src/lib/base/log_outputters.cpp index 010d79f2..962c9d68 100644 --- a/src/lib/base/log_outputters.cpp +++ b/src/lib/base/log_outputters.cpp @@ -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; }