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

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

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

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

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

Name: Kernel-nice.259
Author: nice
Time: 5 October 2009, 9:30:30 am
UUID: b697f955-c5f6-4e39-8fc2-5456580a73db
Ancestors: Kernel-nice.258

Fix http://bugs.squeak.org/view.php?id=7101
asSmallPositiveDegrees uselessly complex and can loop infinitely

=============== Diff against Kernel-nice.258 ===============

Item was changed:
  ----- Method: Number>>asSmallPositiveDegrees (in category 'converting') -----
  asSmallPositiveDegrees
  "Return the receiver normalized to lie within the range (0, 360)"
 
+ ^self \\ 360!
- | result |
- result := self.
- [result < 0] whileTrue: [result := result + 360].
- ^ result \\ 360
-
- "#(-500 -300 -150 -5 0 5 150 300 500 1200) collect: [:n | n asSmallPositiveDegrees]"!