[Pkg] The Trunk: Kernel-nice.728.mcz

commits at source.squeak.org commits at source.squeak.org
Wed Jan 2 21:28:33 UTC 2013

Nicolas Cellier uploaded a new version of Kernel to project The Trunk:

==================== 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!

More information about the Packages mailing list