]> git.notmuchmail.org Git - apitrace/blobdiff - trace_parser.hpp
Encode images in base64.
[apitrace] / trace_parser.hpp
index dfaf42e4e29d31b9881b6e0283ff5b8e86ef0dc1..edd968510bb969769e629650cbfcf8ed9acbb86d 100644 (file)
@@ -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
@@ -400,9 +400,6 @@ public:
 };
 
 
-unsigned long long Trace::Parser::version = 0;
-
-
 } /* namespace Trace */
 
 #endif /* _TRACE_PARSER_HPP_ */