Nicolas Cellier uploaded a new version of Kernel to project The Trunk:
http://source.squeak.org/trunk/Kernel-nice.1107.mcz
==================== Summary ====================
Name: Kernel-nice.1107
Author: nice
Time: 2 June 2017, 12:13:19.450751 am
UUID: 597f9f85-fe7b-430a-8ba2-1dd548dc246f
Ancestors: Kernel-eem.1106
Correct digitLength for negative SmallInteger
The length was overestimated for some numbers, for example
self assert: -16rFF01 digitLength = 2.
With old code it would answer 3.
Indeed, the binary representation is 16r...FFFFFF00FF
After shifting once, we got 16r....FFFFFF00, that is -256 and we shifted yet another time.
digitLength works on magnitude (like LargeInteger) so we have to take absolute value, but care of SmallInteger minVal abs which is a LargePositiveInteger with same trick as digitAt:
=============== Diff against Kernel-eem.1106 ===============
Item was changed:
----- Method: SmallInteger>>digitLength (in category 'system primitives') -----
digitLength
"Answer the number of indexable fields in the receiver. This value is the
same as the largest legal subscript. Included so that a SmallInteger can
behave like a LargePositiveInteger or LargeNegativeInteger."
| value length |
length := 1.
+ (value := self) < -255
- value := self.
- value >= 0
ifTrue:
+ [length := 2.
+ value := (-256 - self bitShift: -8) + 1 "carefully negate SmallInteger minVal"].
+ [value > 255] whileTrue:
+ [value := value bitShift: -8.
+ length := length + 1].
- [[value > 255] whileTrue:
- [value := value bitShift: -8.
- length := length + 1]]
- ifFalse:
- [[value < -255] whileTrue:
- [value := value bitShift: -8.
- length := length + 1]].
^length!
Eliot Miranda uploaded a new version of SUnitGUI to project The Trunk:
http://source.squeak.org/trunk/SUnitGUI-eem.68.mcz
==================== Summary ====================
Name: SUnitGUI-eem.68
Author: eem
Time: 1 June 2017, 2:20:29.979374 pm
UUID: 47ec06e5-6ff4-4475-9034-b298e6f98544
Ancestors: SUnitGUI-ul.67
If Flaps is present (and not loading for the first time) run the initialize method to make sure TestRunner is in the Flaps Tools registry.
=============== Diff against SUnitGUI-ul.67 ===============
Item was added:
+ (PackageInfo named: 'SUnitGUI') preamble: '"below, add code to be run before the loading of this package"
+ "If Flaps is present (and not loading for the first time) run the initialize method to make sure TestRunner is in the Flaps Tools registry."
+ (Smalltalk classNamed: #TestRunner) ifNotNil:
+ [:trc|
+ trc environment at: #Flaps ifPresent: [ :fc | trc initialize]]'!
Eliot Miranda uploaded a new version of Graphics to project The Trunk:
http://source.squeak.org/trunk/Graphics-eem.376.mcz
==================== Summary ====================
Name: Graphics-eem.376
Author: eem
Time: 1 June 2017, 10:36:17.709391 am
UUID: b6953526-6eff-43a5-8cc6-9ac9c4b37f82
Ancestors: Graphics-eem.375
Add thriceLighter and thriceDarker for more visible gradients.
=============== Diff against Graphics-eem.375 ===============
Item was added:
+ ----- Method: Color>>thriceDarker (in category 'transformations') -----
+ thriceDarker
+ "Answer a significantly darker shade of this color."
+
+ ^ self adjustSaturation: 0.09 brightness: -0.22!
Item was added:
+ ----- Method: Color>>thriceLighter (in category 'transformations') -----
+ thriceLighter
+ "Answer a significantly lighter shade of this color."
+
+ ^ self adjustSaturation: -0.09 brightness: 0.22!