aboutsummaryrefslogtreecommitdiff
path: root/src/istream/buffer.cc
diff options
context:
space:
mode:
authorAdrian Kummerlaender2017-10-06 16:46:31 +0200
committerAdrian Kummerlaender2017-10-06 16:47:32 +0200
commitb93f4fea59dfab2c8cb06d00b32a567838982bdf (patch)
tree268e2d9f057acc72a6af42194497059bd0088b6f /src/istream/buffer.cc
parentd951a22faf35aabe526de2588006c9381904b137 (diff)
downloadDictzipQuery-b93f4fea59dfab2c8cb06d00b32a567838982bdf.tar
DictzipQuery-b93f4fea59dfab2c8cb06d00b32a567838982bdf.tar.gz
DictzipQuery-b93f4fea59dfab2c8cb06d00b32a567838982bdf.tar.bz2
DictzipQuery-b93f4fea59dfab2c8cb06d00b32a567838982bdf.tar.lz
DictzipQuery-b93f4fea59dfab2c8cb06d00b32a567838982bdf.tar.xz
DictzipQuery-b93f4fea59dfab2c8cb06d00b32a567838982bdf.tar.zst
DictzipQuery-b93f4fea59dfab2c8cb06d00b32a567838982bdf.zip
Implement primitive dictzip index queries
Diffstat (limited to 'src/istream/buffer.cc')
-rw-r--r--src/istream/buffer.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/istream/buffer.cc b/src/istream/buffer.cc
index 26697f4..2a195e0 100644
--- a/src/istream/buffer.cc
+++ b/src/istream/buffer.cc
@@ -20,7 +20,7 @@ void IstreamBuf::readChunk(long n) {
std::fseek(dictzip_file_, data_offset_ + chunkN.offset, SEEK_SET);
- if ( fread(zBuf, 1, chunkN.size, dictzip_file_) != chunkN.size ) {
+ if ( std::fread(zBuf, 1, chunkN.size, dictzip_file_) != chunkN.size ) {
throw std::runtime_error("Could not read dictzip chunk.");
}