Anonymous | Login | 01-26-2021 02:36 UTC |
Main | My View | View Issues | Change Log | Docs |
Viewing Issue Advanced Details [ Jump to Notes ] | [ View Simple ] [ Issue History ] [ Print ] | ||||||||
ID | Category | Severity | Reproducibility | Date Submitted | Last Update | ||||
0006782 | [Squeak] Collections | major | always | 11-23-07 22:38 | 04-18-10 22:05 | ||||
Reporter | nicolas cellier | View Status | public | ||||||
Assigned To | andreas | ||||||||
Priority | normal | Resolution | fixed | Platform | |||||
Status | closed | OS | |||||||
Projection | none | OS Version | |||||||
ETA | none | Fixed in Version | trunk | Product Version | 3.10 | ||||
Product Build | |||||||||
Summary | 0006782: 1.0 / (FloatArray with: 2.0) unexpected result | ||||||||
Description |
Try: 1.0 / (FloatArray with: 2.0) Answer is? (FloatArray with: 2.0) Hem... |
||||||||
Steps To Reproduce | |||||||||
Additional Information | bug is in FloatArray>>adaptToNumber:andSend: | ||||||||
Attached Files |
![]() ![]() |
||||||||
|
![]() |
|
(0011454 - 49 - 49 - 49 - 49 - 49 - 49) nicolas cellier 11-23-07 22:39 |
Oops, Ken twice sorry, this one for Collection... |
(0011455 - 274 - 365 - 365 - 365 - 365 - 365) nicolas cellier 11-23-07 23:03 |
Obvious patch is: selector == #/ ifTrue:[^self reciprocal * rcvr]. However, this is bad, because of gradual underflow: self reciprocal can give Infinity, while result is computable. For example: self should: (1.0e-39 / (FloatArray with: 1.0e-39)) first < 2 |
(0011559 - 173 - 239 - 239 - 239 - 239 - 239) Keith_Hodges 12-17-07 16:39 edited on: 12-17-07 17:08 |
"fix begin" Installer mantis bug: 6782 fix:'FloatArray-adapt-M6782-Patch.1.cs'. "fix test" Installer mantis bug: 6782 fix:'FloatArray-adapt-M6782-Test.1.cs'. "fix end" |
(0013264 - 64 - 64 - 224 - 224 - 224 - 224) nicolas cellier 08-24-09 20:03 |
Fixed in http://source.squeak.org/trunk/Collections-nice.107.mcz [^] |
Mantis 1.0.8[^]
Copyright © 2000 - 2007 Mantis Group
73 total queries executed. 40 unique queries executed. |