diff options
author | Petteri Aimonen <jpa@git.mail.kapsi.fi> | 2012-07-05 18:24:11 +0300 |
---|---|---|
committer | Petteri Aimonen <jpa@git.mail.kapsi.fi> | 2012-07-05 18:24:11 +0300 |
commit | efef38cf7869f11750fba1dfb965e93b42d5d49e (patch) | |
tree | 8c393ac51f6ed11a4bfd6d12c1f2552dba10dbcc | |
parent | 72cca8d7838402eb436f1403d4c29dee46db62a1 (diff) |
Fix some typos in __BIG_ENDIAN__ code
-rw-r--r-- | pb_encode.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/pb_encode.c b/pb_encode.c index c6cccf21..faaeac9d 100644 --- a/pb_encode.c +++ b/pb_encode.c @@ -235,7 +235,7 @@ bool checkreturn pb_encode_svarint(pb_ostream_t *stream, int64_t value) bool checkreturn pb_encode_fixed32(pb_ostream_t *stream, const void *value) { #ifdef __BIG_ENDIAN__ - uint8_t *bytes = value; + const uint8_t *bytes = value; uint8_t lebytes[4]; lebytes[0] = bytes[3]; lebytes[1] = bytes[2]; @@ -250,7 +250,7 @@ bool checkreturn pb_encode_fixed32(pb_ostream_t *stream, const void *value) bool checkreturn pb_encode_fixed64(pb_ostream_t *stream, const void *value) { #ifdef __BIG_ENDIAN__ - uint8_t *bytes[8] = value; + const uint8_t *bytes = value; uint8_t lebytes[8]; lebytes[0] = bytes[7]; lebytes[1] = bytes[6]; |