#include <snappy.h>
#include <iostream>
+#include <algorithm>
#include <assert.h>
#include <string.h>
int SnappyFile::rawPercentRead()
{
- return 100 * (double(m_stream.tellg()) / double(m_endPos));
+ return int(100 * (double(m_stream.tellg()) / double(m_endPos)));
}