2
0
mirror of git://sourceware.org/git/glibc.git synced 2025-04-18 14:30:43 +08:00

chunksize(x) => x->size

This commit is contained in:
Jakub Jelinek 2004-11-19 06:38:37 +00:00
parent 788b3f7f39
commit 802ea9dccd

@ -4233,7 +4233,7 @@ _int_free(mstate av, Void_t* mem)
#endif
) {
if (__builtin_expect (chunksize (chunk_at_offset (p, size)) <= 2 * SIZE_SZ,
if (__builtin_expect (chunk_at_offset (p, size)->size <= 2 * SIZE_SZ,
0)
|| __builtin_expect (chunksize (chunk_at_offset (p, size))
>= av->system_mem, 0))
@ -4285,7 +4285,7 @@ _int_free(mstate av, Void_t* mem)
}
nextsize = chunksize(nextchunk);
if (__builtin_expect (nextsize <= 2 * SIZE_SZ, 0)
if (__builtin_expect (nextchunk->size <= 2 * SIZE_SZ, 0)
|| __builtin_expect (nextsize >= av->system_mem, 0))
{
errstr = "invalid next size (normal)";