diff options
author | José Fonseca <jfonseca@vmware.com> | 2011-03-23 16:44:47 +0000 |
---|---|---|
committer | José Fonseca <jfonseca@vmware.com> | 2011-03-23 16:44:47 +0000 |
commit | bb32c5e7bb3be07038c9f8cfc4559d34744bd3d8 (patch) | |
tree | 1a0fdbff8f33920ba0b9c20e6b91d157d4afed3b /trace_parser.hpp | |
parent | 8a6c6cb07fbb009bb1587d890309db70a0f08fed (diff) |
Silence some warnings.
Diffstat (limited to 'trace_parser.hpp')
-rw-r--r-- | trace_parser.hpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/trace_parser.hpp b/trace_parser.hpp index dfaf42e..f008fb9 100644 --- a/trace_parser.hpp +++ b/trace_parser.hpp @@ -319,7 +319,7 @@ public: size_t size = read_uint(); Blob *blob = new Blob(size); if (size) { - gzread(file, blob->buf, size); + gzread(file, blob->buf, (unsigned)size); } return blob; } @@ -360,7 +360,7 @@ public: return std::string(); } char * buf = new char[len]; - gzread(file, buf, len); + gzread(file, buf, (unsigned)len); std::string value(buf, len); delete [] buf; #if TRACE_VERBOSE |