diff --git a/direct/src/dcparser/dcPackerInterface.I b/direct/src/dcparser/dcPackerInterface.I index 160cc4fdd9..c9daac2c7e 100644 --- a/direct/src/dcparser/dcPackerInterface.I +++ b/direct/src/dcparser/dcPackerInterface.I @@ -253,8 +253,9 @@ do_unpack_int64(const char *buffer) { ((uint64_t)(unsigned char)buffer[4] << 32) | ((uint64_t)(unsigned char)buffer[5] << 40) | ((uint64_t)(unsigned char)buffer[6] << 48) | - ((int64_t)(signed char)buffer[7] << 54)); + ((int64_t)(signed char)buffer[7] << 56)); } + /** * */ @@ -295,10 +296,9 @@ do_unpack_uint64(const char *buffer) { ((uint64_t)(unsigned char)buffer[4] << 32) | ((uint64_t)(unsigned char)buffer[5] << 40) | ((uint64_t)(unsigned char)buffer[6] << 48) | - ((int64_t)(signed char)buffer[7] << 54)); + ((uint64_t)(unsigned char)buffer[7] << 56)); } - /** * */