From 05006d8a2d9936dd59989a228de12a5e316fd29b Mon Sep 17 00:00:00 2001 From: sgimenez Date: Tue, 21 Nov 2006 20:21:27 +0000 Subject: [PATCH] should fix compilation issues on 64bit arches --- src/trace/pool.h | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/trace/pool.h b/src/trace/pool.h index 3f722f538..d072a460b 100644 --- a/src/trace/pool.h +++ b/src/trace/pool.h @@ -99,11 +99,11 @@ class pool { //printf("pool allocating block: %d (size:%d)...", i, blocksize);//debug block[i] = (void *)malloc(blocksize * size); if (!block[i]) throw std::bad_alloc(); - void *p = block[i]; + char *p = (char *)block[i]; for (int k = 0; k < blocksize - 1; k++) { - *(void**)p = (void *)((int)p + size); - p = (void *)((int)p + size); + *(void**)p = (void *)(p + size); + p += size; } *(void **)p = next; next = block[i]; -- 2.30.2