From: sgimenez Date: Tue, 21 Nov 2006 20:21:27 +0000 (+0000) Subject: should fix compilation issues on 64bit arches X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=05006d8a2d9936dd59989a228de12a5e316fd29b;p=inkscape.git should fix compilation issues on 64bit arches --- 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];