]> git.cworth.org Git - apitrace/commitdiff
Fix SnappyFile::rawGetc() on big endian hosts.
authorMichel Dänzer <michel.daenzer@amd.com>
Fri, 6 Jan 2012 13:20:00 +0000 (14:20 +0100)
committerJosé Fonseca <jose.r.fonseca@gmail.com>
Sat, 7 Jan 2012 17:17:06 +0000 (17:17 +0000)
Signed-off-by: Michel Dänzer <michel.daenzer@amd.com>
Signed-off-by: José Fonseca <jose.r.fonseca@gmail.com>
common/trace_file_snappy.cpp

index e4c17cd1755d7d2024e6a6fa4f30861912056436..c0727cd28e86df4e54573e7094e7125cd91053a2 100644 (file)
@@ -241,7 +241,7 @@ size_t SnappyFile::rawRead(void *buffer, size_t length)
 
 int SnappyFile::rawGetc()
 {
-    int c = 0;
+    unsigned char c = 0;
     if (rawRead(&c, 1) != 1)
         return -1;
     return c;