Mantis - Squeak
Viewing Issue Advanced Details
7401 Kernel minor always 10-04-09 21:08 04-18-10 22:04
nicolas cellier  
nicolas cellier  
normal  
closed trunk  
fixed  
none    
none trunk  
0007401: Float negativeZero shallowCopy loose its negative sign
self assert: Float negativeZero shallowCopy hex = Float negativeZero hex
the code ^self + 0.0 preserves infinity and NaN, but unfortunately not -0.0

I suggest using ^self - 0.0
 FloatNegativeZeroCopy-M7401-Test-nice.1.cs [^] (891 bytes) 10-04-09 21:15
 FloatNegativeZeroCopy-M7401-Patch-nice.1.cs [^] (461 bytes) 10-04-09 21:19

Notes
(0013336)
nicolas cellier   
10-04-09 21:21   
"fix begin"
Installer mantis bug: 7401 fix:'FloatNegativeZeroCopy-M7401-Patch-nice.1.cs'.
"fix test".
Installer mantis bug: 7401 fix:'FloatNegativeZeroCopy-M7401-Test-nice.1.cs'.
"fix end"
(0013337)
nicolas cellier   
10-04-09 21:40   
Fixed in http://source.squeak.org/trunk/Kernel-nice.258.mcz [^]