The Trunk: Kernel-nice.479.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.479.mcz

commits-2
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]!