Commit 4c1ed69
committed
[tree] Fix long64 tree index losing precision on 64-bit long double platforms
The conditional `long64major ? GetLong64() : GetAndRangeCheck()` mixes
Long64_t and LongDouble_t, so the exact value was promoted through long
double regardless of branch. This rounded large values where long double
is 64-bit (macOS arm64, Windows), making roottest-root-tree-index-indexl64
fail there while passing on Linux. Assign via if/else instead.
🤖 Done with the help of [Claude Code](https://claude.com/claude-code) (Claude Opus 4.8)1 parent 0a8f816 commit 4c1ed69
1 file changed
Lines changed: 14 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
211 | 211 | | |
212 | 212 | | |
213 | 213 | | |
214 | | - | |
215 | | - | |
| 214 | + | |
| 215 | + | |
| 216 | + | |
| 217 | + | |
| 218 | + | |
| 219 | + | |
| 220 | + | |
| 221 | + | |
| 222 | + | |
| 223 | + | |
| 224 | + | |
| 225 | + | |
| 226 | + | |
| 227 | + | |
216 | 228 | | |
217 | 229 | | |
218 | 230 | | |
| |||
0 commit comments