From: Michel Dänzer Date: Fri, 6 Jan 2012 13:20:00 +0000 (+0100) Subject: Fix SnappyFile::rawGetc() on big endian hosts. X-Git-Url: https://git.cworth.org/git?a=commitdiff_plain;h=435e66b53337844edb72679dbf71ab9f51b124ca;p=apitrace Fix SnappyFile::rawGetc() on big endian hosts. Signed-off-by: Michel Dänzer Signed-off-by: José Fonseca --- diff --git a/common/trace_file_snappy.cpp b/common/trace_file_snappy.cpp index e4c17cd..c0727cd 100644 --- a/common/trace_file_snappy.cpp +++ b/common/trace_file_snappy.cpp @@ -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;