]> Shamusworld >> Repos - rmac/commitdiff
Fixed subtle bug in expr().
authorShamus Hammons <jlhamm@acm.org>
Sat, 9 Nov 2013 15:01:57 +0000 (09:01 -0600)
committerShamus Hammons <jlhamm@acm.org>
Sat, 9 Nov 2013 15:01:57 +0000 (09:01 -0600)
Basically, expr() was looking at the token following the one it was
looking at and bypassing the longer parse path if it found an EOL token
there. Problem is, some tokens have follow on values and so can be
considered compound tokens. In this case, the EOL token codes to 101,
having a constant with a value of 101 will not evaluate correctly in
this case as the CONST token is a compound token.

The short of this is that making assumptions is BAD! Don't do it! It
WILL come around to bite you in the ass eventually, in the form of
subtle bugs that are difficult to chase down. Assume nothing!


No differences found