Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: PATCH: heap reallocation
- X-seq: zsh-workers 19921
- From: Bart Schaefer <schaefer@xxxxxxxxxxxxxxxx>
- To: Zsh hackers list <zsh-workers@xxxxxxxxxx>
- Subject: Re: PATCH: heap reallocation
- Date: Tue, 11 May 2004 09:26:50 -0700 (PDT)
- In-reply-to: <20882.1084290045@xxxxxxx>
- Mailing-list: contact zsh-workers-help@xxxxxxxxxx; run by ezmlm
- Reply-to: Zsh hackers list <zsh-workers@xxxxxxxxxx>
- Sender: schaefer@xxxxxxxxxxxxxxxxxx
On Tue, 11 May 2004, Peter Stephenson wrote:
> a careful look would be appreciated.
This looks like a bug (some lines trimmed):
> +#ifdef USE_MMAP
> + Heap hnew;
> +
> +#else
> + h = (Heap) realloc(h, n);
> +#endif
> +
> + hnew->size = n;
Using hnew outside the #ifdef where it is declared. Should be h->size ?
Messages sorted by:
Reverse Date,
Date,
Thread,
Author