Permalink
Browse files

CardinalInteger is always true, fix comparison in Range.pir. Fixing t…

…/range/to_s.t
  • Loading branch information...
tadzik committed Feb 20, 2011
1 parent b43e328 commit a658acf7d354b7000cd21780ec6b5e9daa87ef0c
Showing with 3 additions and 5 deletions.
  1. +3 −5 src/classes/Range.pir
View
@@ -137,11 +137,9 @@ Gets the beginning or end of the range.
$P0 = getattribute self, '$!from_exclusive'
$P1 = getattribute self, '$!to_exclusive'
$P2 = $P0 && $P1
- if $P2 goto build_exclusive
- goto build_inclusive
- build_inclusive:
- $S0 = '..'
- goto build_return
+ if $P2 > 0 goto build_exclusive
+ $S0 = '..'
+ goto build_return
build_exclusive:
$S0 = '...'
goto build_return

0 comments on commit a658acf

Please sign in to comment.