Skip to content

Commit

Permalink
Merge pull request #2009 from MarcusDenker/22690-32-vs-64-bits-and-la…
Browse files Browse the repository at this point in the history
…rge-integer-hash

22690-32-vs-64-bits-and-large-integer-hash
  • Loading branch information
MarcusDenker committed Nov 26, 2018
2 parents 4cdcdfc + 2141038 commit aab4604
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions src/Kernel/LargeInteger.class.st
Original file line number Diff line number Diff line change
Expand Up @@ -238,10 +238,9 @@ LargeInteger >> digitLength [

{ #category : #comparing }
LargeInteger >> hash [

^ByteArray
hashBytes: self
startingWith: self species hash
^ self digitLength <= 8
ifTrue: [ self ]
ifFalse: [ ByteArray hashBytes: self startingWith: self species hash ]
]

{ #category : #'bit manipulation' }
Expand Down

0 comments on commit aab4604

Please sign in to comment.