utils-map: fix a type casting warning 42/64342/1
authorGwanglim Lee <gl77.lee@samsung.com>
Thu, 31 Mar 2016 13:05:44 +0000 (22:05 +0900)
committerGwanglim Lee <gl77.lee@samsung.com>
Thu, 31 Mar 2016 13:05:44 +0000 (22:05 +0900)
Change-Id: Iae3be2d73e2968a271f2c8dd334cafebc725c0a4

src/lib/pepper/utils-map.c

index b9da448..256bd96 100644 (file)
@@ -97,7 +97,7 @@ pepper_map_int32_init(pepper_map_t *map, int bucket_bits, void *buckets)
 static int
 int64_hash(const void *key, int key_length)
 {
-       return pepper_hash64((uint64_t)key);
+       return pepper_hash64((uint64_t)(uintptr_t)key);
 }
 
 static int