From c1f8de9954486229c294a2a65d8f66867599de75 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Jos=C3=A9=20Fonseca?= Date: Tue, 17 Mar 2009 14:36:37 +0000 Subject: [PATCH] util: Realloc takes bytes. --- src/gallium/auxiliary/util/u_bitmask.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/gallium/auxiliary/util/u_bitmask.c b/src/gallium/auxiliary/util/u_bitmask.c index 4b6a230960b..77587c07ec0 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; -- 2.30.2