diff options
author | José Fonseca <jfonseca@vmware.com> | 2009-03-17 14:36:37 +0000 |
---|---|---|
committer | José Fonseca <jfonseca@vmware.com> | 2009-03-17 14:38:55 +0000 |
commit | c1f8de9954486229c294a2a65d8f66867599de75 (patch) | |
tree | 5688329fb22dd2813c1642d32fa2f0eed1172ef9 /src/gallium | |
parent | f20a0155f37a3a7d3074250dfdbc8e4d3dc7d03a (diff) | |
download | external_mesa3d-c1f8de9954486229c294a2a65d8f66867599de75.zip external_mesa3d-c1f8de9954486229c294a2a65d8f66867599de75.tar.gz external_mesa3d-c1f8de9954486229c294a2a65d8f66867599de75.tar.bz2 |
util: Realloc takes bytes.
Diffstat (limited to 'src/gallium')
-rw-r--r-- | src/gallium/auxiliary/util/u_bitmask.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/gallium/auxiliary/util/u_bitmask.c b/src/gallium/auxiliary/util/u_bitmask.c index 4b6a230..77587c0 100644 --- a/src/gallium/auxiliary/util/u_bitmask.c +++ b/src/gallium/auxiliary/util/u_bitmask.c @@ -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; |