Skip to content

Commit

Permalink
Adds extra check before assuming compiledMethod of SBStBasicMethod is…
Browse files Browse the repository at this point in the history
… not self
  • Loading branch information
JoeAtHPI committed Sep 12, 2023
1 parent 5176c2e commit f74b2b5
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 6 deletions.
10 changes: 5 additions & 5 deletions packages/Sandblocks-Core/SBExploriantsView.class.st
Original file line number Diff line number Diff line change
Expand Up @@ -61,8 +61,8 @@ SBExploriantsView >> containerRow [
changeTableLayout;
listDirection: #leftToRight;
layoutInset: 8;
cellGap: 8;
cellInset: 5;
cellGap: 3;
cellInset: 3;
borderWidth: 0
]

Expand All @@ -85,9 +85,9 @@ SBExploriantsView >> initialize [
changeTableLayout;
color: Color white;
listDirection: #topToBottom;
layoutInset: 8;
cellGap: 8;
cellInset: 5;
layoutInset: 3;
cellGap: 4;
cellInset: 2;
hResizing: #shrinkWrap;
vResizing: #shrinkWrap)
]
Expand Down
4 changes: 3 additions & 1 deletion packages/Sandblocks-Smalltalk/SBStBasicMethod.class.st
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,9 @@ SBStBasicMethod class >> selector: aSymbol arguments: aCollection class: aClass
{ #category : #comparing }
SBStBasicMethod >> = anotherSBStBasicMethod [

^ anotherSBStBasicMethod class = self class and: [anotherSBStBasicMethod compiledMethod equivalentTo: self compiledMethod]
^ anotherSBStBasicMethod class == self class
and: [anotherSBStBasicMethod compiledMethod ~= anotherSBStBasicMethod]
and: [anotherSBStBasicMethod compiledMethod equivalentTo: self compiledMethod]
]

{ #category : #accessing }
Expand Down

0 comments on commit f74b2b5

Please sign in to comment.