[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Bug in make-shared-array.
From: |
Neil Jerram |
Subject: |
Re: Bug in make-shared-array. |
Date: |
Wed, 14 Jun 2006 01:45:49 +0100 |
User-agent: |
Gnus/5.1007 (Gnus v5.10.7) Emacs/21.4 (gnu/linux) |
Marius Vollmer <address@hidden> writes:
> Neil Jerram <address@hidden> writes:
>
>> in lines
>> 872-893, this -
>>
>> if (s[k].inc > 0)
>> old_max += (s[k].ubnd - s[k].lbnd) * s[k].inc;
>> else
>> old_min += (s[k].ubnd - s[k].lbnd) * s[k].inc;
>>
>> - suggests that (old_min, old_max) will be (inclusive, exclusive),
>
> Hmm, no, this loop computes the range of valid indices into the
> underlying storage vector and is not concerned with the number of
> elements. Thus, all valid indices i must satisfy old_min <= i <=
> old_max.
Thanks for explaining this. (And sorry for this late reply.)
> I'm inclined not to do anything about this until starting a bigger,
> more general cleanup of the code. Thoughts?
Agreed.
Regards,
Neil
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- Re: Bug in make-shared-array.,
Neil Jerram <=