1.1 --- a/ucx/map.h Wed Feb 06 12:55:56 2013 +0100 1.2 +++ b/ucx/map.h Wed Feb 06 14:31:44 2013 +0100 1.3 @@ -72,7 +72,7 @@ 1.4 #define ucx_map_cstr_put(m, s, d) \ 1.5 ucx_map_put(m, ucx_key((void*)s, strlen(s)), d) 1.6 #define ucx_map_int_put(m, i, d) \ 1.7 - ucx_map_put(m, ucx_key((void*)&i, sizeof(d)), d) 1.8 + ucx_map_put(m, ucx_key((void*)&i, sizeof(i)), d) 1.9 1.10 #define ucx_map_sstr_get(m, s) \ 1.11 ucx_map_get(m, ucx_key(s.ptr, s.length)) 1.12 @@ -86,7 +86,7 @@ 1.13 #define ucx_map_cstr_remove(m, s) \ 1.14 ucx_map_remove(m, ucx_key((void*)s, strlen(s))) 1.15 #define ucx_map_int_remove(m, i) \ 1.16 - ucx_map_remove(m, ucx_key((void*)&i, sizeof(int))) 1.17 + ucx_map_remove(m, ucx_key((void*)&i, sizeof(i))) 1.18 1.19 UcxKey ucx_key(void *data, size_t len); 1.20