changeset 743:a85130f17ab5 HEAD

We shouldn't cast sizeof() to unsigned int.
author Timo Sirainen <tss@iki.fi>
date Mon, 02 Dec 2002 15:45:58 +0200
parents b3dd87844fff
children 68d99a09dab2
files src/lib/imem.h src/lib/mempool.h
diffstat 2 files changed, 2 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/src/lib/imem.h	Mon Dec 02 14:41:33 2002 +0200
+++ b/src/lib/imem.h	Mon Dec 02 15:45:58 2002 +0200
@@ -5,7 +5,7 @@
 
 /* For easy allocation of memory from default memory pool. */
 #define i_new(type, count) \
-        ((type *) i_malloc((unsigned) sizeof(type) * (count)))
+        ((type *) i_malloc(sizeof(type) * (count)))
 void *i_malloc(size_t size);
 void i_free(void *mem);
 void *i_realloc(void *mem, size_t size);
--- a/src/lib/mempool.h	Mon Dec 02 14:41:33 2002 +0200
+++ b/src/lib/mempool.h	Mon Dec 02 15:45:58 2002 +0200
@@ -51,7 +51,7 @@
 
 /* Extra macros to make life easier: */
 #define p_new(pool, type, count) \
-	((type *) p_malloc(pool, (unsigned) sizeof(type) * (count)))
+	((type *) p_malloc(pool, sizeof(type) * (count)))
 #define p_free_and_null(pool, rec) \
 	STMT_START { \
           p_free(pool, rec); \