Mantis - Squeak
Viewing Issue Advanced Details
7040 Kernel minor always 05-10-08 14:22 04-18-10 22:05
hfm  
nicolas cellier  
normal  
closed  
fixed  
none    
none trunk  
0007040: #asFloatSimply should be in LargePositiveInteger
Sending

"aSmallInteger" 5 asFloatSimply

gives
Error: Instances of SmallInteger are not indexable.
However it does work fine for *LargeInteger:

4585759856567 asFloatSimply

Fix is attached.
 Integer#asFloatSimply.1.cs [^] (809 bytes) 05-10-08 14:22

Notes
(0012077)
nicolas cellier   
05-10-08 15:15   
Oh yes, you are right.

asFloatSimply was part of an initial patch for converting (large) integers to nearest Float, and used to be called from LargeInteger only.
But it has soon been superseded.

IMO, the best thing is to remove it from the image.
(0013206)
nicolas cellier   
07-19-09 19:58   
Fixed in http://source.squeak.org/trunk/Kernel-nice.196.mcz [^]