projects
/
tools
/
apitrace.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
fe93afd
)
Fix SnappyFile::rawGetc() on big endian hosts.
author
Michel Dänzer
<michel.daenzer@amd.com>
Fri, 6 Jan 2012 13:20:00 +0000
(14:20 +0100)
committer
José 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
patch
|
blob
|
history
diff --git
a/common/trace_file_snappy.cpp
b/common/trace_file_snappy.cpp
index
e4c17cd
..
c0727cd
100644
(file)
--- 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;