diff --git a/panda/src/express/hashVal.cxx b/panda/src/express/hashVal.cxx index e8a018f026..e7f9e910cb 100644 --- a/panda/src/express/hashVal.cxx +++ b/panda/src/express/hashVal.cxx @@ -212,7 +212,7 @@ hash_buffer(const char *buffer, int length) { // buffer and the following 8 positions. //////////////////////////////////////////////////////////////////// void HashVal:: -encode_hex(unsigned int val, char *buffer) { +encode_hex(PN_uint32 val, char *buffer) { buffer[0] = tohex(val >> 28); buffer[1] = tohex(val >> 24); buffer[2] = tohex(val >> 20); @@ -230,7 +230,7 @@ encode_hex(unsigned int val, char *buffer) { // unsigned integer. //////////////////////////////////////////////////////////////////// void HashVal:: -decode_hex(const char *buffer, unsigned int &val) { +decode_hex(const char *buffer, PN_uint32 &val) { unsigned int bytes[8]; for (int i = 0; i < 8; i++) { bytes[i] = fromhex(buffer[i]); diff --git a/panda/src/express/hashVal.h b/panda/src/express/hashVal.h index 3f78664727..76d9f06ee2 100644 --- a/panda/src/express/hashVal.h +++ b/panda/src/express/hashVal.h @@ -72,8 +72,8 @@ PUBLISHED: #endif // HAVE_SSL private: - static void encode_hex(unsigned int val, char *buffer); - static void decode_hex(const char *buffer, unsigned int &val); + static void encode_hex(PN_uint32 val, char *buffer); + static void decode_hex(const char *buffer, PN_uint32 &val); INLINE static char tohex(unsigned int nibble); INLINE static unsigned int fromhex(char digit);