mirror of
https://github.com/cc65/cc65.git
synced 2025-01-11 11:30:13 +00:00
remove workaround for _heapmaxavail
This commit is contained in:
parent
701c59900d
commit
09f7eb72c2
@ -70,7 +70,7 @@ int main(int argc, char **argv)
|
||||
/* allocate buffer */
|
||||
buffer = malloc(buflen);
|
||||
if (! buffer) {
|
||||
buflen = _heapmaxavail() - 8; /* get as much as we can */
|
||||
buflen = _heapmaxavail(); /* get as much as we can */
|
||||
buffer = malloc(buflen);
|
||||
if (! buffer) {
|
||||
fprintf(stderr, "cannot alloc %ld bytes -- aborting...\n", (long)buflen);
|
||||
|
Loading…
x
Reference in New Issue
Block a user