Zsh Mailing List Archive
Messages sorted by: Reverse Date, Date, Thread, Author

Re: PATCH: heap reallocation



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