#BUGFIX by stefan
authorStefan Vogel <sv@exept.de>
Thu, 07 Apr 2016 14:35:11 +0200
changeset 19553 a1e1e8901461
parent 19552 ce6927de468b
child 19554 91ec8f105783
#BUGFIX by stefan class: Integer changed: #hash
Integer.st
--- a/Integer.st	Wed Apr 06 15:08:42 2016 +0200
+++ b/Integer.st	Thu Apr 07 14:35:11 2016 +0200
@@ -799,6 +799,7 @@
     "Modified: 18.7.1996 / 12:26:38 / cg"
 ! !
 
+
 !Integer class methodsFor:'prime numbers'!
 
 flushPrimeCache
@@ -1174,6 +1175,7 @@
     ^ self == Integer
 ! !
 
+
 !Integer methodsFor:'Compatibility-Dolphin'!
 
 & aNumber
@@ -1439,6 +1441,7 @@
 ! !
 
 
+
 !Integer methodsFor:'bcd conversion'!
 
 decodeFromBCD
@@ -2735,7 +2738,7 @@
 hash
     "redefined to return smallInteger hashValues"
 
-    ^ self bitAnd:16r3FFFFFFF.
+    ^ self bitAnd:SmallInteger maxVal.
 
     "
         -20000000000000 hash
@@ -4851,6 +4854,7 @@
     "Created: / 09-01-2012 / 17:18:06 / cg"
 ! !
 
+
 !Integer methodsFor:'special modulo arithmetic'!
 
 add_32:anInteger