fixed wrong assertion
This commit is contained in:
parent
7f363d07b6
commit
c78b5a2bf8
@ -96,7 +96,6 @@ malloc(n)
|
||||
}
|
||||
|
||||
p = SBRK((int)req);
|
||||
assert((size_type)p == align((size_type)p));
|
||||
if (p == ILL_BREAK) {
|
||||
req = n + mallink_size();
|
||||
p = SBRK((int)req);
|
||||
@ -127,6 +126,7 @@ malloc(n)
|
||||
#endif STORE
|
||||
}
|
||||
else {
|
||||
assert((size_type)p == align((size_type)p));
|
||||
ml = create_chunk(p, req);
|
||||
}
|
||||
check_mallinks("suitable_chunk, extended");
|
||||
|
||||
@ -50,7 +50,7 @@
|
||||
Otherwise, "sbrk" is called directly.
|
||||
*/
|
||||
|
||||
#define ALIGNMENT 8
|
||||
#define ALIGNMENT 8
|
||||
/* alignment common to all types */
|
||||
#define LOG_MIN_SIZE 3
|
||||
#define LOG_MAX_SIZE 24
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user