diff options
author | MosesAdmin <moses-support-owner@mit.edu> | 2015-06-14 02:00:44 +0300 |
---|---|---|
committer | MosesAdmin <moses-support-owner@mit.edu> | 2015-06-14 02:00:44 +0300 |
commit | 89c2df558ca3533369586d8d4e2c7451b2d2732e (patch) | |
tree | ff4d02a5b7622bb1feb65524db0e2c906c8252a4 /phrase-extract/gzfilebuf.h | |
parent | bd86ceffbe6d748a863e15def2443150ca360b38 (diff) |
daily automatic beautifier
Diffstat (limited to 'phrase-extract/gzfilebuf.h')
-rw-r--r-- | phrase-extract/gzfilebuf.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/phrase-extract/gzfilebuf.h b/phrase-extract/gzfilebuf.h index 4c818ddbb..e070da306 100644 --- a/phrase-extract/gzfilebuf.h +++ b/phrase-extract/gzfilebuf.h @@ -12,7 +12,8 @@ public: gzfilebuf(const char *filename) { _gzf = gzopen(filename, "rb"); if (!_gzf) - throw std::runtime_error("Could not open " + std::string(filename) + "."); setg (_buff+sizeof(int), // beginning of putback area + throw std::runtime_error("Could not open " + std::string(filename) + "."); + setg (_buff+sizeof(int), // beginning of putback area _buff+sizeof(int), // read position _buff+sizeof(int)); // end position } |