Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/moses-smt/mosesdecoder.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/util
diff options
context:
space:
mode:
authorHieu Hoang <fishandfrolick@gmail.com>2012-02-24 03:54:07 +0400
committerHieu Hoang <fishandfrolick@gmail.com>2012-02-24 03:54:07 +0400
commit939ac15d0e0ef63a6c72d6779160abd7bad1e54e (patch)
tree39129345bd8c4cb3f40a65c258cdee6c5d8069a6 /util
parent4cbcff3e227b0c2021431f9b80ffa63365f77d46 (diff)
zlib changes
Diffstat (limited to 'util')
-rw-r--r--util/file_piece.cc6
1 files changed, 3 insertions, 3 deletions
diff --git a/util/file_piece.cc b/util/file_piece.cc
index 812f8e802..cd5880132 100644
--- a/util/file_piece.cc
+++ b/util/file_piece.cc
@@ -31,7 +31,7 @@ ParseNumberException::ParseNumberException(StringPiece value) throw() {
GZException::GZException(void *file) {
#ifdef HAVE_ZLIB
int num;
- *this << gzerror( (gzFile_s*) file, &num) << " from zlib";
+ *this << gzerror( (gzFile) file, &num) << " from zlib";
#endif // HAVE_ZLIB
}
@@ -56,7 +56,7 @@ FilePiece::~FilePiece() {
// zlib took ownership
file_.release();
int ret;
- if (Z_OK != (ret = gzclose( (gzFile_s*) gz_file_))) {
+ if (Z_OK != (ret = gzclose( (gzFile) gz_file_))) {
std::cerr << "could not close file " << file_name_ << " using zlib" << std::endl;
abort();
}
@@ -295,7 +295,7 @@ void FilePiece::ReadShift() {
ssize_t read_return;
#ifdef HAVE_ZLIB
- read_return = gzread( (gzFile_s*) gz_file_, static_cast<char*>(data_.get()) + already_read, default_map_size_ - already_read);
+ read_return = gzread( (gzFile) gz_file_, static_cast<char*>(data_.get()) + already_read, default_map_size_ - already_read);
if (read_return == -1) throw GZException(gz_file_);
if (total_size_ != kBadSize) {
// Just get the position, don't actually seek. Apparently this is how you do it. . .