1
0
mirror of https://sourceware.org/git/glibc.git synced 2025-08-07 06:43:00 +03:00

Fix set_max_fast in malloc.

This commit is contained in:
Ulrich Drepper
2010-04-03 09:43:10 -07:00
parent 960af486d2
commit 991eda1ec1
2 changed files with 6 additions and 1 deletions

View File

@@ -2350,7 +2350,8 @@ typedef struct malloc_chunk* mfastbinptr;
*/
#define set_max_fast(s) \
global_max_fast = ((s) == 0)? SMALLBIN_WIDTH: request2size(s)
global_max_fast = (((s) == 0) \
? SMALLBIN_WIDTH: ((s + SIZE_SZ) & ~MALLOC_ALIGN_MASK))
#define get_max_fast() global_max_fast