The Trunk: Kernel-nice.728.mcz

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

The Trunk: Kernel-nice.728.mcz

commits-2
Nicolas Cellier uploaded a new version of Kernel to project The Trunk:
http://source.squeak.org/trunk/Kernel-nice.728.mcz

==================== Summary ====================

Name: Kernel-nice.728
Author: nice
Time: 2 January 2013, 10:27:22.828 pm
UUID: c38e7675-1a9f-4697-827d-e6e5c9d3f15c
Ancestors: Kernel-cwp.727

Fix http://bugs.squeak.org/view.php?id=7605.
Creating a new Float of size ~= 2 may crash the image.
With this change it is safe to create a Float new (0.0), no use to forbid it.
Thanks Levente

=============== Diff against Kernel-cwp.727 ===============

Item was added:
+ ----- Method: Float class>>basicNew (in category 'instance creation') -----
+ basicNew
+ ^self basicNew: 2!

Item was added:
+ ----- Method: Float class>>basicNew: (in category 'instance creation') -----
+ basicNew: anInteger
+ anInteger = 2 ifFalse: [^self error: 'a Float shall always have two slots'].
+ ^super basicNew: 2!