From 435e66b53337844edb72679dbf71ab9f51b124ca Mon Sep 17 00:00:00 2001 From: =?utf8?q?Michel=20D=C3=A4nzer?= Date: Fri, 6 Jan 2012 14:20:00 +0100 Subject: [PATCH] Fix SnappyFile::rawGetc() on big endian hosts. MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit Signed-off-by: Michel Dänzer Signed-off-by: José Fonseca --- common/trace_file_snappy.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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; -- 2.7.4