From 48585f35c7f0ef0dbe7eb67bed90b79e5fd426f6 Mon Sep 17 00:00:00 2001 From: Jeff Brown Date: Thu, 24 Nov 2011 11:54:21 -0800 Subject: [PATCH] Use sized integer typedefs in hash_type specializations. Change-Id: I3f9e004db2f3be1cb43a885c3ae142f251fd6845 --- include/utils/TypeHelpers.h | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/include/utils/TypeHelpers.h b/include/utils/TypeHelpers.h index 75388176d..7b4fb70ba 100644 --- a/include/utils/TypeHelpers.h +++ b/include/utils/TypeHelpers.h @@ -272,14 +272,14 @@ hash_t hash_type(const TKey& key); return hash_type(*reinterpret_cast(&value)); } ANDROID_INT32_HASH(bool) -ANDROID_INT32_HASH(char) -ANDROID_INT32_HASH(unsigned char) -ANDROID_INT32_HASH(short) -ANDROID_INT32_HASH(unsigned short) -ANDROID_INT32_HASH(int) -ANDROID_INT32_HASH(unsigned int) -ANDROID_INT64_HASH(long) -ANDROID_INT64_HASH(unsigned long) +ANDROID_INT32_HASH(int8_t) +ANDROID_INT32_HASH(uint8_t) +ANDROID_INT32_HASH(int16_t) +ANDROID_INT32_HASH(uint16_t) +ANDROID_INT32_HASH(int32_t) +ANDROID_INT32_HASH(uint32_t) +ANDROID_INT64_HASH(int64_t) +ANDROID_INT64_HASH(uint64_t) ANDROID_REINTERPRET_HASH(float, uint32_t) ANDROID_REINTERPRET_HASH(double, uint64_t)