[PATCH] Fix SnappyFile::rawGetc() on big endian hosts.
Michel Dänzer
michel at daenzer.net
Fri Jan 6 05:20:00 PST 2012
From: Michel Dänzer <michel.daenzer at amd.com>
Signed-off-by: Michel Dänzer <michel.daenzer at amd.com>
---
common/trace_file_snappy.cpp | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
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;
--
1.7.7.3
More information about the apitrace
mailing list