[PATCH] Fix SnappyFile::rawGetc() on big endian hosts.
José Fonseca
jose.r.fonseca at gmail.com
Sat Jan 7 09:54:04 PST 2012
Pushed. Thanks Michel.
Jose
2012/1/6 Michel Dänzer <michel at daenzer.net>:
> 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
>
> _______________________________________________
> apitrace mailing list
> apitrace at lists.freedesktop.org
> http://lists.freedesktop.org/mailman/listinfo/apitrace
More information about the apitrace
mailing list