summaryrefslogtreecommitdiffstats
path: root/src/trace
diff options
context:
space:
mode:
authorSt??phane Gimenez <dev@gim.name>2006-11-21 20:21:27 +0000
committersgimenez <sgimenez@users.sourceforge.net>2006-11-21 20:21:27 +0000
commit721a09753c60055cfc544a0e4c93c371c5d17607 (patch)
tree4fd859e6b3759e6d872df263477ea7560f5415e6 /src/trace
parentimprove performance (diff)
downloadinkscape-721a09753c60055cfc544a0e4c93c371c5d17607.tar.gz
inkscape-721a09753c60055cfc544a0e4c93c371c5d17607.zip
should fix compilation issues on 64bit arches
(bzr r2000)
Diffstat (limited to 'src/trace')
-rw-r--r--src/trace/pool.h6
1 files 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];