On Sun, Nov 30, 2014 at 03:16:17PM -0700, Todd C. Miller wrote:
> On Sun, 30 Nov 2014 14:41:33 +0100, Otto Moerbeek wrote:
>
> > Pondering this some more, I think your diff is the right thing to do.
> > But I prefer to write the second condition the same as the first. What
> > do you think?
>
> Why do you think allocating an extra byte in the arrays is the right
> approach?
>
> - todd
A few reasons:
- I could not convince myself that j + from[k] in the k loop
is properly bounded.
- The change is (partly) also in byacc
- Somehow i like having a -1 sentinel better than checking a bound.
-Otto