Skip to content

Commit

Permalink
Inverted pointer symbols in cast
Browse files Browse the repository at this point in the history
  • Loading branch information
dzerbino committed May 24, 2012
1 parent 9f54e46 commit 45617bf
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/allocArray.c
Original file line number Diff line number Diff line change
Expand Up @@ -195,8 +195,8 @@ static void initAllocArrayArray(AllocArray *array,
{
array->freeElements = NULL;
array->elementSize = elementSize;
array->blockSize = (((*size_t) 1) << BLOCKS_ALLOC_SHIFT) * elementSize;
array->maxElements = (((*size_t) 1) << BLOCKS_ALLOC_SHIFT);
array->blockSize = (((size_t*) 1) << BLOCKS_ALLOC_SHIFT) * elementSize;
array->maxElements = (((size_t*) 1) << BLOCKS_ALLOC_SHIFT);
array->maxBlocks = nbBlocks;
array->blocks = blocks;
array->blocks[thisThread] = callocOrExit(array->blockSize, char);
Expand All @@ -220,7 +220,7 @@ AllocArray *newAllocArrayArray(unsigned int n,
int i;

allocArray = callocOrExit (n + 1, AllocArray);
nbBlocks = (((*size_t) 1) << (INDEX_LENGTH - BLOCKS_ALLOC_SHIFT));
nbBlocks = (((size_t*) 1) << (INDEX_LENGTH - BLOCKS_ALLOC_SHIFT));
blocks = callocOrExit(nbBlocks, void*);
for (i = 0; i < n; i++)
initAllocArrayArray(allocArray + i,
Expand Down

0 comments on commit 45617bf

Please sign in to comment.