summaryrefslogtreecommitdiff
path: root/src/list.h
diff options
context:
space:
mode:
authorJohannes Hofmann <Johannes.Hofmann@gmx.de>2012-05-26 13:58:42 +0200
committerJohannes Hofmann <Johannes.Hofmann@gmx.de>2012-05-26 13:58:42 +0200
commit366fe274ebb7b318fe042b3ab2e60bd81179f43e (patch)
tree711df5c4f9e1e5f95a39edc0232cee19252286b5 /src/list.h
parentda02f4ca35ba0346ad1826bab87042f39660f0c0 (diff)
unify use of sizeof() when computing array length
Submitted by: 123 <p37sitdu@lavabit.com>
Diffstat (limited to 'src/list.h')
-rw-r--r--src/list.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/list.h b/src/list.h
index 8623bf09..f98661d1 100644
--- a/src/list.h
+++ b/src/list.h
@@ -16,12 +16,12 @@
*/
#define a_List_resize(list,num_items,alloc_step) \
if (!list) { \
- list = dMalloc(alloc_step * sizeof((*list))); \
+ list = dMalloc(alloc_step * sizeof(*list)); \
} \
if (num_items >= alloc_step){ \
while ( num_items >= alloc_step ) \
alloc_step <<= 1; \
- list = dRealloc(list, alloc_step * sizeof((*list))); \
+ list = dRealloc(list, alloc_step * sizeof(*list)); \
}