Re: bitset: check memory allocation

2019-09-07 Thread Akim Demaille
> Le 8 sept. 2019 à 03:17, Paul Eggert a écrit : > > Thanks, and your changes all look good to me; please install when you have > the time. We can worry about the other issues later (if ever...). Installed, thanks!

Re: bitset: check memory allocation

2019-09-07 Thread Paul Eggert
Thanks, and your changes all look good to me; please install when you have the time. We can worry about the other issues later (if ever...).

Re: bitset: check memory allocation

2019-09-06 Thread Akim Demaille
Hi Paul, Thanks a lot for the detailed answer! > Le 5 sept. 2019 à 22:54, Paul Eggert a écrit : > > On 9/5/19 12:59 PM, Akim Demaille wrote: > >>EBITSET_ELTS (src) >> -= realloc (EBITSET_ELTS (src), newsize * sizeof (tbitset_elt >> *)); >> += xrealloc (EBIT

Re: bitset: check memory allocation

2019-09-05 Thread Paul Eggert
On 9/5/19 12:59 PM, Akim Demaille wrote: EBITSET_ELTS (src) -= realloc (EBITSET_ELTS (src), newsize * sizeof (tbitset_elt *)); += xrealloc (EBITSET_ELTS (src), newsize * sizeof (tbitset_elt *)); This code is trying to shrink the bitset, and in the unlikely e