Updates to latest TommyDS library.

This commit is contained in:
Andrea Mazzoleni 2014-03-28 21:30:21 +01:00
parent 44ef039a13
commit e85be13d3b
4 changed files with 30 additions and 19 deletions

View file

@ -90,7 +90,7 @@ tommy_inline void* tommy_arrayblkof_ref(tommy_arrayblkof* array, unsigned pos)
assert(pos < array->size);
base = tommy_array_get(&array->block, pos / TOMMY_ARRAYBLKOF_SIZE);
base = tommy_cast(unsigned char*, tommy_array_get(&array->block, pos / TOMMY_ARRAYBLKOF_SIZE));
return base + (pos % TOMMY_ARRAYBLKOF_SIZE) * array->element_size;
}