Repository navigation
Reject unsigned rounding scales above the Int16 range instead of reading them as negative - #132299
Conversation
…ing them as negative
|
Workflow [PR], commit [1d4f8ec] Summary: ✅
AI ReviewSummaryPR #132299, reviewed at Final Verdict✅ Approve |
Build profile diff (arm_release)Comparing ✅ No significant changes. Binary sizes
The official master build is compiled with Object file sizes4 object files changed (-35.72 KiB total), 0 added.
711 more object files are built by the master warmup baseline only (it builds every object-file target, a pull request build only Compile time of recompiled translation units10 translation units recompiled, 73 s compile time in total, 10 of them have a recent master baseline. Median compile-time ratio to the baselines is ×0.94 (machine-speed difference or a change affecting every TU); per-TU deltas below are relative to that ratio. |
Closes: #132276
Changelog category (leave one):
Changelog entry (a user-readable short description of the changes that goes into CHANGELOG.md):
Fix
round,floor,ceil,truncandroundBankerstreating aUInt64scale close to 2^64 as a negative scale. Such scales now throwARGUMENT_OUT_OF_BOUNDlike any other scale outside theInt16range.Description
The scale was cast to
Int64before the range check, so18446744073709551614became-2and passed it, andround(1234.5678, 18446744073709551614)returned 1200. The check now compares the scale in its own type, for both constant and non-constant scales. The new test fails on master.Workflow [PR]
Sync PR [sync-upstream/pr/132299]
Version info
26.11.1.2616-master(included in26.11and later)