mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-09 04:38:03 +02:00
util: Realloc takes bytes.
This commit is contained in:
parent
f20a0155f3
commit
c1f8de9954
1 changed files with 2 additions and 2 deletions
|
|
@ -112,8 +112,8 @@ util_bitmask_resize(struct util_bitmask *bm,
|
|||
assert(new_size % UTIL_BITMASK_BITS_PER_WORD == 0);
|
||||
|
||||
new_words = (util_bitmask_word *)REALLOC((void *)bm->words,
|
||||
bm->size / UTIL_BITMASK_BITS_PER_WORD,
|
||||
new_size / UTIL_BITMASK_BITS_PER_WORD);
|
||||
bm->size / UTIL_BITMASK_BITS_PER_BYTE,
|
||||
new_size / UTIL_BITMASK_BITS_PER_BYTE);
|
||||
if(!new_words)
|
||||
return FALSE;
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue