Commit f3e47dc
Promote float32→float64 in _promote_for_addition for overflow safety
float32 addition can overflow just like integer addition. Promote
float16/float32 to float64, matching the existing integer promotion
pattern (int32→int64, etc.).
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>1 parent 3b366ad commit f3e47dc
1 file changed
Lines changed: 6 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
75 | 75 | | |
76 | 76 | | |
77 | 77 | | |
78 | | - | |
| 78 | + | |
| 79 | + | |
| 80 | + | |
| 81 | + | |
| 82 | + | |
| 83 | + | |
79 | 84 | | |
80 | 85 | | |
81 | 86 | | |
| |||
0 commit comments