X-Git-Url: https://git.cworth.org/git?a=blobdiff_plain;f=common%2Ftrace_file_snappy.cpp;h=68673c6324ef5e28a9f0b79cf0f4e54f53bdcb63;hb=712cc1db47e56a1032dc72d4209ffc9054ec54e4;hp=f47c89b046c37fe282478a9ca6a014bb108df553;hpb=ef7013981f3bf403b375a998faf49f4b8f59083c;p=apitrace diff --git a/common/trace_file_snappy.cpp b/common/trace_file_snappy.cpp index f47c89b..68673c6 100644 --- a/common/trace_file_snappy.cpp +++ b/common/trace_file_snappy.cpp @@ -397,7 +397,7 @@ bool SnappyFile::rawSkip(size_t length) int SnappyFile::rawPercentRead() { - return 100 * (double(m_stream.tellg()) / double(m_endPos)); + return int(100 * (double(m_stream.tellg()) / double(m_endPos))); }