Ensure ranges ending with a var never evaluate to 0
I started out by trying to fix this without leaning on recast, but the code gets ugly once you have to consider different node types for positive/negative end bounds. I gave up and used recast once the variable-end-bound-should-never-be-0 thing cropped up :/
Fixes:
I started out by trying to fix this without leaning on
recast
, but the code gets ugly once you have to consider different node types for positive/negative end bounds. I gave up and usedrecast
once the variable-end-bound-should-never-be-0 thing cropped up :/