mirror of
https://github.com/amadvance/snapraid.git
synced 2026-11-28 19:06:42 -05:00
Updates to latest TommyDS library.
This commit is contained in:
parent
44ef039a13
commit
e85be13d3b
4 changed files with 30 additions and 19 deletions
|
|
@ -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;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue