diff -r af355652f271 -r cf3757c60c8f ucx/map.h --- a/ucx/map.h Wed Feb 06 12:55:56 2013 +0100 +++ b/ucx/map.h Wed Feb 06 14:31:44 2013 +0100 @@ -72,7 +72,7 @@ #define ucx_map_cstr_put(m, s, d) \ ucx_map_put(m, ucx_key((void*)s, strlen(s)), d) #define ucx_map_int_put(m, i, d) \ - ucx_map_put(m, ucx_key((void*)&i, sizeof(d)), d) + ucx_map_put(m, ucx_key((void*)&i, sizeof(i)), d) #define ucx_map_sstr_get(m, s) \ ucx_map_get(m, ucx_key(s.ptr, s.length)) @@ -86,7 +86,7 @@ #define ucx_map_cstr_remove(m, s) \ ucx_map_remove(m, ucx_key((void*)s, strlen(s))) #define ucx_map_int_remove(m, i) \ - ucx_map_remove(m, ucx_key((void*)&i, sizeof(int))) + ucx_map_remove(m, ucx_key((void*)&i, sizeof(i))) UcxKey ucx_key(void *data, size_t len);