Skip to content

Commit

Permalink
antother fix..
Browse files Browse the repository at this point in the history
  • Loading branch information
MarcusDenker committed Jul 16, 2020
1 parent 06e0217 commit 0361751
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/Kernel/CompiledCode.class.st
Expand Up @@ -487,7 +487,7 @@ CompiledCode >> literalsAt: anIndex [
{ #category : #literals }
CompiledCode >> literalsDo: aBlock [
"Evaluate aBlock for each of the literals referenced by the receiver."
1 to: self numLiterals do:
1 to: self numLiterals - self literalsToSkip do:
[:index | aBlock value: (self literalAt: index)]
]
Expand Down Expand Up @@ -735,7 +735,7 @@ CompiledCode >> sameLiteralsAs: method [
(numLits := self numLiterals) ~= method numLiterals
ifTrue: [ ^ false ].
"The last literal requires special checking instead of using #literalEqual:"
1 to: numLits - 1 do: [ :index |
1 to: numLits - self literalsToSkip do: [ :index |
literal1 := self literalAt: index.
literal2 := method literalAt: index.
(literal1 == literal2 or: [ literal1 literalEqual: literal2 ])
Expand Down

0 comments on commit 0361751

Please sign in to comment.