X-Git-Url: https://git.cworth.org/git?a=blobdiff_plain;ds=inline;f=common%2Ftrace_file_snappy.cpp;h=41d86ea00ded834e33dadd3a3ca65c5d5ef7da63;hb=dfd413a5f54bd450850b5e84886949bcdf85b1e7;hp=f47c89b046c37fe282478a9ca6a014bb108df553;hpb=ef7013981f3bf403b375a998faf49f4b8f59083c;p=apitrace diff --git a/common/trace_file_snappy.cpp b/common/trace_file_snappy.cpp index f47c89b..41d86ea 100644 --- a/common/trace_file_snappy.cpp +++ b/common/trace_file_snappy.cpp @@ -54,6 +54,7 @@ #include #include +#include #include #include @@ -397,7 +398,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))); }