projects
/
mesa.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
f20a015
)
util: Realloc takes bytes.
author
José Fonseca
<jfonseca@vmware.com>
Tue, 17 Mar 2009 14:36:37 +0000
(14:36 +0000)
committer
José Fonseca
<jfonseca@vmware.com>
Tue, 17 Mar 2009 14:38:55 +0000
(14:38 +0000)
src/gallium/auxiliary/util/u_bitmask.c
patch
|
blob
|
history
diff --git
a/src/gallium/auxiliary/util/u_bitmask.c
b/src/gallium/auxiliary/util/u_bitmask.c
index 4b6a230960b43ac3642374be8b24d8f69b8281a7..77587c07ec0d508344e422517664f349f03d4bd1 100644
(file)
--- 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;