[squeak-dev] The Trunk: Kernel-nice.479.mcz

commits at source.squeak.org commits at source.squeak.org
Sat Aug 21 20:43:29 UTC 2010


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

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

Name: Kernel-nice.479
Author: nice
Time: 21 August 2010, 10:42:50.198 pm
UUID: 05a9ec90-5060-4f09-8808-608d5b6cb657
Ancestors: Kernel-ul.478

Fix for http://bugs.squeak.org/view.php?id=7555

The sign of (Float negativeZero abs) was negative, which was surprising...

=============== Diff against Kernel-ul.478 ===============

Item was changed:
  ----- Method: Float>>abs (in category 'arithmetic') -----
  abs
+ 	"This is faster than using Number abs and works for negativeZero."
+ 	self <= 0.0
- 	"This is faster than using Number abs."
- 	self < 0.0
  		ifTrue: [^ 0.0 - self]
  		ifFalse: [^ self]!




More information about the Squeak-dev mailing list