Skip to content

Commit

Permalink
off by one fixed
Browse files Browse the repository at this point in the history
  • Loading branch information
MarcusDenker committed Jul 17, 2020
1 parent 0361751 commit d7e71eb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Kernel/CompiledCode.class.st
Expand Up @@ -365,7 +365,7 @@ CompiledCode >> indexOfLiteral: literal [
1 to: self numLiterals - self literalsToSkip "exclude superclass + selector/properties"
do:
[:index |
literal == (self literalAt: index) ifTrue: [^index - 1]].
literal == (self literalAt: index) ifTrue: [^index]].
^0
]
Expand Down

0 comments on commit d7e71eb

Please sign in to comment.