Skip to content

Commit

Permalink
Fix CompiledMethodProxy check
Browse files Browse the repository at this point in the history
  • Loading branch information
PalumboN committed Apr 20, 2023
1 parent 31c1425 commit 76c3b15
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion smalltalksrc/VMMaker/VMCompiledMethodProxy.class.st
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ Class {

{ #category : #accessing }
VMCompiledMethodProxy >> at: index [
^(index between: self numLiterals + 1 * objectMemory wordSize + 1 and: self size)
^(index between: self numLiterals + 1 * objectMemory wordSize + 1 and: self endPC)
ifTrue: [objectMemory fetchByte: index - 1 ofObject: oop]
ifFalse: [self errorSubscriptBounds: index]
]
Expand Down

0 comments on commit 76c3b15

Please sign in to comment.