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

commits at source.squeak.org commits at source.squeak.org
Mon Oct 5 19:31:38 UTC 2009


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]"!




More information about the Squeak-dev mailing list