Fix format string in fastlib module.
#include "bufferedfile.h"
#include <cassert>
#include <cstring>
+#include <cinttypes>
namespace {
@@ -191,7 +192,7 @@ Fast_BufferedFile::SetPosition(const int64_t s)
diff = _filepos - s;
if ( !(((diff > 0l) || ((diff == 0l) && (_fileleft == 0l))) && (diff <= static_cast<int64_t>(_buf.size())))) {
char tmp[8196];
- sprintf(tmp, "diff %ld _fileleft=%ld _buflen=%ld", diff, _fileleft, _buf.size());
+ sprintf(tmp, "diff %" PRId64 " _fileleft=%" PRId64 " _buflen=%zu", diff, _fileleft, _buf.size());
*static_cast<int *>(0) = 5;
}
}
