mirror of
https://github.com/panda3d/panda3d.git
synced 2025-10-17 12:12:10 -04:00
oops, build without NSPR
This commit is contained in:
parent
03297f74c8
commit
5cd7c10da3
@ -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]);
|
||||
|
@ -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);
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user