]> mj.ucw.cz Git - libucw.git/commitdiff
hashtables: fixed combination of HASH_GIVE_ALLOC and HASH_TABLE_ALLOC
authorPavel Charvat <pavel.charvat@netcentrum.cz>
Mon, 23 Apr 2007 12:07:19 +0000 (14:07 +0200)
committerPavel Charvat <pavel.charvat@netcentrum.cz>
Mon, 23 Apr 2007 12:07:19 +0000 (14:07 +0200)
lib/hashtable.h

index ec581ed777bb9743826b963204bb6e940965837f..f57412b70a103120c519749f8a2d95b876af4b03 100644 (file)
@@ -349,7 +349,7 @@ static inline void P(cleanup_alloc) (TAU) { }
 #endif
 
 #ifdef HASH_TABLE_ALLOC
-static inline void * P(table_alloc) (TAUC unsigned int size) { return P(alloc)(size); }
+static inline void * P(table_alloc) (TAUC unsigned int size) { return P(alloc)(TTC size); }
 static inline void P(table_free) (TAUC void *x) { P(free)(x); }
 #else
 static inline void * P(table_alloc) (TAUC unsigned int size) { return xmalloc(size); }