Skip to content

Commit

Permalink
Add blocks to ifTrue:ifFalse:
Browse files Browse the repository at this point in the history
  • Loading branch information
James Foster committed Jul 9, 2019
1 parent ecbd2bf commit 0cad78c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Hermes/HEInteger.class.st
Original file line number Diff line number Diff line change
Expand Up @@ -28,5 +28,5 @@ HEInteger >> doReadFrom: aReader [
isNegative := aReader readByte = 1.
anArray := aReader readByteArray.

value := anArray asInteger *(isNegative ifTrue: -1 ifFalse: 1)
value := anArray asInteger * (isNegative ifTrue: [-1] ifFalse: [1])
]

0 comments on commit 0cad78c

Please sign in to comment.