util: a negative return spec past i64::MIN is refused, not flipped positive #1690

Merged
b3IKK merged 1 commit from upstream-pr/1700 into main 2026-12-02 17:37:49 +00:00
b3IKK commented 2026-11-24 19:24:20 +00:00 (Migrated from github.com)

Imported from ivall/xcl. Originally posted by b3IKK on 2026-11-24T19:24:20Z.


util::parse_ret (the return values in data/stubdb.toml and in init_db overrides) negated a negative spec's magnitude as u64:

if let Some(n) = t.strip_prefix('-') {
    return n.parse::<u64>().ok().map(|v| (v as i64).wrapping_neg() as u64);
}

That is right for -1 (0xFFFF_FFFF, a console HRESULT) but wraps for anything below i64::MIN: "-9223372036854775809" came back as 0x7FFF_FFFF_FFFF_FFFF, a positive value where a negative one was asked for, and "-+1" parsed as -1 because u64::from_str accepts a leading +.

This takes a negative spec as i64 (which accepts i64::MIN itself) and refuses everything below it instead of flipping it positive. The hex form and a whole u64 are unchanged.

What is in it

  • crates/xcl/src/util.rs: parse the decimal spec as i64 before u64 in parse_ret; add unit test a_negative_return_spec_is_not_wrapped_around_i64_min (fails on main: -9223372036854775809 → Some(9223372036854775807) instead of None).

Tested

  • hardware (GPU + driver, CPU), Windows build, Rust version, debug / release: NVIDIA GeForce RTX 5080 (driver 32.0.16.1088), AMD Ryzen 9 9950X3D, Windows 11 10.0.26300, Rust 1.100.0 (stable-x86_64-pc-windows-msvc), DXC 1.9.2609.5, debug (scripts/test.ps1) and release (scripts/smoke.ps1)
  • .\scripts\test.ps1 (cargo build --workspace + cargo test --workspace -- --test-threads=4): 960 passed, 0 failed, 43 ignored (SKIPPED: the wave64 / direct-DXIL per-lane tests that need 64-lane hardware or a semantics mode this adapter refuses, no heap windows, and cannot disable the driver cache (Windows Developer Mode is required))
  • cargo test -p xcl --lib util::tests: 6 passed, 0 failed

Regression run

main (1d027e5, clean tree, no local changes):

xcl-smoke v1
commit: 1d027e5c76c9a86a7ee2ca1cc677edf0be95d331
gpu: NVIDIA GeForce RTX 5080
title: 9cc6a39e
seconds: 60
exit: 0x0
frames shown: 1553 (PresentX 1554)
presents per 2 s (last 3): 60 60 60
device removals: 0
crashes: 0
peak commit: 16342 MB

PR (b509a70, clean tree, no local changes):

xcl-smoke v1
commit: b509a70707bff971ca7e12e3560d4d0c5ccdf51d
gpu: NVIDIA GeForce RTX 5080
title: 9cc6a39e
seconds: 60
exit: 0x0
frames shown: 1643 (PresentX 1643)
presents per 2 s (last 3): 60 60 60
device removals: 0
crashes: 0
peak commit: 14612 MB

Not tested

  • AMD GPUs and native wave64 hardware
  • other titles (Minecraft Preview, Unicorn Overlord, Fortnite, XDefiant) and Linux / Wine

AI use

  • OpenCode, Gemini 4 Neon: audited util::parse_ret, wrote the fix and unit test (and confirmed it fails without the fix), rebased onto 1d027e5, ran the test suite and scripts/smoke.ps1 regression runs with #677's title hashing, and drafted this PR description.
<!-- greyfinch-sync:ivall/xcl:issue:5478829072 --> Imported from [ivall/xcl](https://github.com/xcl-dev/xcl/pull/1700). Originally posted by [b3IKK](https://github.com/b3IKK) on 2026-11-24T19:24:20Z. --- `util::parse_ret` (the return values in `data/stubdb.toml` and in `init_db` overrides) negated a negative spec's magnitude as `u64`: ```rust if let Some(n) = t.strip_prefix('-') { return n.parse::<u64>().ok().map(|v| (v as i64).wrapping_neg() as u64); } ``` That is right for `-1` (`0xFFFF_FFFF`, a console HRESULT) but wraps for anything below `i64::MIN`: `"-9223372036854775809"` came back as `0x7FFF_FFFF_FFFF_FFFF`, a positive value where a negative one was asked for, and `"-+1"` parsed as `-1` because `u64::from_str` accepts a leading `+`. This takes a negative spec as `i64` (which accepts `i64::MIN` itself) and refuses everything below it instead of flipping it positive. The hex form and a whole `u64` are unchanged. **What is in it** - `crates/xcl/src/util.rs`: parse the decimal spec as `i64` before `u64` in `parse_ret`; add unit test `a_negative_return_spec_is_not_wrapped_around_i64_min` (fails on `main`: `-9223372036854775809` → `Some(9223372036854775807)` instead of `None`). **Tested** - hardware (GPU + driver, CPU), Windows build, Rust version, debug / release: NVIDIA GeForce RTX 5080 (driver 32.0.16.1088), AMD Ryzen 9 9950X3D, Windows 11 10.0.26300, Rust 1.100.0 (`stable-x86_64-pc-windows-msvc`), DXC 1.9.2609.5, debug (`scripts/test.ps1`) and release (`scripts/smoke.ps1`) - `.\scripts\test.ps1` (`cargo build --workspace` + `cargo test --workspace -- --test-threads=4`): 960 passed, 0 failed, 43 ignored (SKIPPED: the wave64 / direct-DXIL per-lane tests that need 64-lane hardware or a semantics mode this adapter refuses, `no heap windows`, and `cannot disable the driver cache (Windows Developer Mode is required)`) - `cargo test -p xcl --lib util::tests`: 6 passed, 0 failed **Regression run** main (`1d027e5`, clean tree, no local changes): ``` xcl-smoke v1 commit: 1d027e5c76c9a86a7ee2ca1cc677edf0be95d331 gpu: NVIDIA GeForce RTX 5080 title: 9cc6a39e seconds: 60 exit: 0x0 frames shown: 1553 (PresentX 1554) presents per 2 s (last 3): 60 60 60 device removals: 0 crashes: 0 peak commit: 16342 MB ``` PR (`b509a70`, clean tree, no local changes): ``` xcl-smoke v1 commit: b509a70707bff971ca7e12e3560d4d0c5ccdf51d gpu: NVIDIA GeForce RTX 5080 title: 9cc6a39e seconds: 60 exit: 0x0 frames shown: 1643 (PresentX 1643) presents per 2 s (last 3): 60 60 60 device removals: 0 crashes: 0 peak commit: 14612 MB ``` **Not tested** - AMD GPUs and native wave64 hardware - other titles (Minecraft Preview, Unicorn Overlord, Fortnite, XDefiant) and Linux / Wine **AI use** - OpenCode, Gemini 4 Neon: audited `util::parse_ret`, wrote the fix and unit test (and confirmed it fails without the fix), rebased onto `1d027e5`, ran the test suite and `scripts/smoke.ps1` regression runs with #677's title hashing, and drafted this PR description.
b3IKK commented 2026-11-24 23:08:09 +00:00 (Migrated from github.com)

Imported from ivall/xcl. Originally posted by b3IKK on 2026-11-24T22:07:38Z.


Rebased onto 1d027e5 and re-ran: 960 passed, 0 failed, 43 ignored; both blocks above are from the current scripts/smoke.ps1 (#677's hashed itle: line), and the head run is 1643 frames / 0 crashes / 0 device removals against main's 1553.

<!-- greyfinch-sync:ivall/xcl:comment:7145838019 --> Imported from [ivall/xcl](https://github.com/xcl-dev/xcl/pull/1700#issuecomment-7145838019). Originally posted by [b3IKK](https://github.com/b3IKK) on 2026-11-24T22:07:38Z. --- Rebased onto 1d027e5 and re-ran: 960 passed, 0 failed, 43 ignored; both blocks above are from the current scripts/smoke.ps1 (#677's hashed itle: line), and the head run is 1643 frames / 0 crashes / 0 device removals against main's 1553.
DavidM1911 commented 2026-11-24 23:08:10 +00:00 (Migrated from github.com)

Imported from ivall/xcl. Originally posted by DavidM1911 on 2026-11-24T22:09:42Z.


Verification on RTX 3060 Ti (Windows 11), branch merged with current main:

  • cargo test -p xcl --lib: all passed, 0 failed, ~23 ignored.

Thanks!

<!-- greyfinch-sync:ivall/xcl:comment:7145882671 --> Imported from [ivall/xcl](https://github.com/xcl-dev/xcl/pull/1700#issuecomment-7145882671). Originally posted by [DavidM1911](https://github.com/DavidM1911) on 2026-11-24T22:09:42Z. --- Verification on RTX 3060 Ti (Windows 11), branch merged with current `main`: - `cargo test -p xcl --lib`: all passed, 0 failed, ~23 ignored. Thanks!
JJAutoCompare commented 2026-11-25 04:10:46 +00:00 (Migrated from github.com)

Imported from ivall/xcl. Originally posted by JJAutoCompare on 2026-11-25T04:02:14Z.


XCL PR #1700 verification

Head b509a70707bff971ca7e12e3560d4d0c5ccdf51d was checked out detached and clean. The PR changes only crates/xcl/src/util.rs.

STOR-WINLAB ran Windows 11 Enterprise Evaluation x64 (build 26200) on an AMD Ryzen 7 3800X with an Intel Arc A770 (driver 32.0.101.9175). DXC was 1.9.2609.5 and rustc was 1.100.0 (0ef1bc386, x86_64-pc-windows-msvc). Cargo used unoptimized dev/test profiles with incremental compilation and debug info disabled.

Tested

  • cargo build --workspace and cargo test --workspace --no-run both exited 0 outside the Arc mutex. The latter compiled 19 test binaries.
  • cargo test -p xcl --lib util::tests::return_specs -- --exact and cargo test -p xcl --lib util::tests::a_negative_return_spec_is_not_wrapped_around_i64_min -- --exact each reported 1 passed, 0 failed, 0 ignored, 0 skipped. Both ran outside the mutex with XCL_ADAPTER=NONE_CPU_ONLY. They verified named, hexadecimal and decimal returns, signed values through i64::MIN, rejection of overflow and malformed signs, and acceptance of u64::MAX.
  • cargo test --workspace --no-fail-fast -- --test-threads=4 ran once inside Invoke-ArcTest.ps1 with XCL_ADAPTER=A770 and RUST_TEST_NOCAPTURE=1. Cargo exited 101. Summing all 20 test result: lines (19 binaries and 1 doctest target) gave 941 passed, 19 failed and 43 ignored. Both return-spec tests passed in this run too.

Workspace failures and skips

  • Library (18 failures). Fourteen GPU tests returned CreateComputePipelineState error 0x80070057. Four had output mismatches in FMA overflow, implicit-LOD sampling, f16 lane preservation and wave64 pixel reduction.
  • End-to-end (1 failure). The test title's dynamic depth-bias check (#94) drew a blue top-right pixel where it expected green.
  • The log contains 25 lines starting with SKIPPED . Seventeen cite unavailable wave64 and three cite refused wave32 per-lane forms. Five cover tiled-resource tier, heap windows, driver-cache controls and missing debug-layer support. These lines provide no test coverage.

Not tested

Matched main baseline, retail-title smoke runs, and other GPU vendors. Failure provenance is undetermined.

AI use

T3 Code / Codex (gpt-6.2-sol, reasoningEffort: high) ran the build and verification. Coordinator #2 (T3 Code / Antigravity, gemini-4-neon) verified counts against pr1700-suite.log and published.

<!-- greyfinch-sync:ivall/xcl:comment:7152469769 --> Imported from [ivall/xcl](https://github.com/xcl-dev/xcl/pull/1700#issuecomment-7152469769). Originally posted by [JJAutoCompare](https://github.com/JJAutoCompare) on 2026-11-25T04:02:14Z. --- # XCL PR #1700 verification Head `b509a70707bff971ca7e12e3560d4d0c5ccdf51d` was checked out detached and clean. The PR changes only `crates/xcl/src/util.rs`. STOR-WINLAB ran Windows 11 Enterprise Evaluation x64 (build 26200) on an AMD Ryzen 7 3800X with an Intel Arc A770 (driver 32.0.101.9175). DXC was 1.9.2609.5 and rustc was 1.100.0 (0ef1bc386, x86_64-pc-windows-msvc). Cargo used unoptimized dev/test profiles with incremental compilation and debug info disabled. **Tested** - `cargo build --workspace` and `cargo test --workspace --no-run` both exited 0 outside the Arc mutex. The latter compiled 19 test binaries. - `cargo test -p xcl --lib util::tests::return_specs -- --exact` and `cargo test -p xcl --lib util::tests::a_negative_return_spec_is_not_wrapped_around_i64_min -- --exact` each reported 1 passed, 0 failed, 0 ignored, 0 skipped. Both ran outside the mutex with `XCL_ADAPTER=NONE_CPU_ONLY`. They verified named, hexadecimal and decimal returns, signed values through `i64::MIN`, rejection of overflow and malformed signs, and acceptance of `u64::MAX`. - `cargo test --workspace --no-fail-fast -- --test-threads=4` ran once inside `Invoke-ArcTest.ps1` with `XCL_ADAPTER=A770` and `RUST_TEST_NOCAPTURE=1`. Cargo exited 101. Summing all 20 `test result:` lines (19 binaries and 1 doctest target) gave 941 passed, 19 failed and 43 ignored. Both return-spec tests passed in this run too. **Workspace failures and skips** - Library (18 failures). Fourteen GPU tests returned `CreateComputePipelineState` error `0x80070057`. Four had output mismatches in FMA overflow, implicit-LOD sampling, f16 lane preservation and wave64 pixel reduction. - End-to-end (1 failure). The test title's dynamic depth-bias check (#94) drew a blue top-right pixel where it expected green. - The log contains 25 lines starting with `SKIPPED `. Seventeen cite unavailable wave64 and three cite refused wave32 per-lane forms. Five cover tiled-resource tier, heap windows, driver-cache controls and missing debug-layer support. These lines provide no test coverage. **Not tested** Matched `main` baseline, retail-title smoke runs, and other GPU vendors. Failure provenance is undetermined. **AI use** T3 Code / Codex (gpt-6.2-sol, reasoningEffort: high) ran the build and verification. Coordinator #2 (T3 Code / Antigravity, gemini-4-neon) verified counts against `pr1700-suite.log` and published.
DavidM1911 commented 2026-11-26 07:03:29 +00:00 (Migrated from github.com)

Imported from ivall/xcl. Originally posted by DavidM1911 on 2026-11-26T06:07:50Z.


Re-verification on RTX 3060 Ti (Windows 11), new head merged with current main:

  • cargo test -p xcl --lib: all passed, 0 failed, 27 ignored. The earlier merge conflict is resolved.

Thanks!

— Devin

<!-- greyfinch-sync:ivall/xcl:comment:7184120892 --> Imported from [ivall/xcl](https://github.com/xcl-dev/xcl/pull/1700#issuecomment-7184120892). Originally posted by [DavidM1911](https://github.com/DavidM1911) on 2026-11-26T06:07:50Z. --- Re-verification on RTX 3060 Ti (Windows 11), new head merged with current `main`: - `cargo test -p xcl --lib`: all passed, 0 failed, 27 ignored. The earlier merge conflict is resolved. Thanks! — Devin
upipibi commented 2026-11-26 16:08:46 +00:00 (Migrated from github.com)

Imported from ivall/xcl. Originally posted by upipibi on 2026-11-26T16:08:46Z.


NVIDIA test report for b509a70: RTX 3070 8 GB (Ampere, driver 616.56), Windows 11 26100, Rust 1.100.0, debug. Head tested as-is on its base 1d027e5.

  • cargo test -p xcl --lib -- --skip hle::xaudio2 --test-threads=4: 902 passed, 0 failed, 23 ignored; 22 SKIPPED: 18 no wave64, 3 lower_dxil per-lane f16 forms refused by design (#1426), 1 driver-cache test (Developer Mode off); none in util.rs.
  • util::tests::a_negative_return_spec_is_not_wrapped_around_i64_min with --exact --test-threads=1 --nocapture, 3 runs: 3/3 passed, 0 SKIPPED.
    Lib tests only; no title run.
    AI-assisted (Claude Code, Claude Opus 5.5).
<!-- greyfinch-sync:ivall/xcl:comment:7197242641 --> Imported from [ivall/xcl](https://github.com/xcl-dev/xcl/pull/1700#issuecomment-7197242641). Originally posted by [upipibi](https://github.com/upipibi) on 2026-11-26T16:08:46Z. --- NVIDIA test report for `b509a70`: RTX 3070 8 GB (Ampere, driver 616.56), Windows 11 26100, Rust 1.100.0, debug. Head tested as-is on its base `1d027e5`. - `cargo test -p xcl --lib -- --skip hle::xaudio2 --test-threads=4`: 902 passed, 0 failed, 23 ignored; 22 SKIPPED: 18 `no wave64`, 3 lower_dxil per-lane f16 forms refused by design (#1426), 1 driver-cache test (Developer Mode off); none in util.rs. - `util::tests::a_negative_return_spec_is_not_wrapped_around_i64_min` with `--exact --test-threads=1 --nocapture`, 3 runs: 3/3 passed, 0 SKIPPED. Lib tests only; no title run. AI-assisted (Claude Code, Claude Opus 5.5).
BBareth commented 2026-11-30 19:20:37 +00:00 (Migrated from github.com)

Imported from ivall/xcl. Originally posted by BBareth on 2026-11-30T19:20:37Z.


merge-check claim
head: b509a70707

<!-- greyfinch-sync:ivall/xcl:comment:7289237377 --> Imported from [ivall/xcl](https://github.com/xcl-dev/xcl/pull/1700#issuecomment-7289237377). Originally posted by [BBareth](https://github.com/BBareth) on 2026-11-30T19:20:37Z. --- merge-check claim head: b509a70707bff971ca7e12e3560d4d0c5ccdf51d
coolpersonnn commented 2026-11-30 19:31:41 +00:00 (Migrated from github.com)

Imported from ivall/xcl. Originally posted by coolpersonnn on 2026-11-30T19:31:41Z.


merge-check claim
head: b509a70707

<!-- greyfinch-sync:ivall/xcl:comment:7289539406 --> Imported from [ivall/xcl](https://github.com/xcl-dev/xcl/pull/1700#issuecomment-7289539406). Originally posted by [coolpersonnn](https://github.com/coolpersonnn) on 2026-11-30T19:31:41Z. --- merge-check claim head: b509a70707bff971ca7e12e3560d4d0c5ccdf51d
coolpersonnn commented 2026-11-30 19:40:01 +00:00 (Migrated from github.com)

Imported from ivall/xcl. Originally posted by coolpersonnn on 2026-11-30T19:40:01Z.


merge-check
base: ff0c364b3d
head: b509a70707
merge: clean
build: cargo build --workspace -> ok
tests: cargo test --workspace --no-fail-fast -- --test-threads=4 -> 2890 passed, 0 failed, 51 ignored (25 SKIPPED: 22 no wave64, 2 no heap windows, 1 cannot disable the driver cache); failing: none; new test util::tests::a_negative_return_spec_is_not_wrapped_around_i64_min passed
review: none. Read the full diff (+17/-2 in crates/xcl/src/util.rs). Replacing strip_prefix('-') + u64::parse + (v as i64).wrapping_neg() with t.parse::<i64>() (falling back to t.parse::<u64>()) accepts i64::MIN..=i64::MAX and 0..=u64::MAX while refusing values below i64::MIN (e.g. -9223372036854775809) and "-+1". The new unit test covers -1, i64::MIN, -2147483649, -9223372036854775809, -18446744073709551615, "-+1", "-", and u64::MAX (fails before the fix on -9223372036854775809, -18446744073709551615, and "-+1"). Minimal scope; no duplicates found in open/merged PRs or #1607.
performance: none (CLI/config string parsing only; not on any hot path)
verdict: safe to merge
hardware / tool and model: NVIDIA GeForce RTX 5090 (driver 32.0.16.2101), AMD Ryzen 9 9950X3D, Windows 11 Pro build 26300, Rust 1.100.0 / T3 Code (Antigravity), Gemini 4 Neon (Medium)

<!-- greyfinch-sync:ivall/xcl:comment:7289752247 --> Imported from [ivall/xcl](https://github.com/xcl-dev/xcl/pull/1700#issuecomment-7289752247). Originally posted by [coolpersonnn](https://github.com/coolpersonnn) on 2026-11-30T19:40:01Z. --- merge-check base: ff0c364b3de011c13ed45865480c21918a79ec89 head: b509a70707bff971ca7e12e3560d4d0c5ccdf51d merge: clean build: cargo build --workspace -> ok tests: cargo test --workspace --no-fail-fast -- --test-threads=4 -> 2890 passed, 0 failed, 51 ignored (25 SKIPPED: 22 no wave64, 2 no heap windows, 1 cannot disable the driver cache); failing: none; new test util::tests::a_negative_return_spec_is_not_wrapped_around_i64_min passed review: none. Read the full diff (+17/-2 in crates/xcl/src/util.rs). Replacing `strip_prefix('-')` + `u64::parse` + `(v as i64).wrapping_neg()` with `t.parse::<i64>()` (falling back to `t.parse::<u64>()`) accepts `i64::MIN..=i64::MAX` and `0..=u64::MAX` while refusing values below `i64::MIN` (e.g. `-9223372036854775809`) and `"-+1"`. The new unit test covers `-1`, `i64::MIN`, `-2147483649`, `-9223372036854775809`, `-18446744073709551615`, `"-+1"`, `"-"`, and `u64::MAX` (fails before the fix on `-9223372036854775809`, `-18446744073709551615`, and `"-+1"`). Minimal scope; no duplicates found in open/merged PRs or #1607. performance: none (CLI/config string parsing only; not on any hot path) verdict: safe to merge hardware / tool and model: NVIDIA GeForce RTX 5090 (driver 32.0.16.2101), AMD Ryzen 9 9950X3D, Windows 11 Pro build 26300, Rust 1.100.0 / T3 Code (Antigravity), Gemini 4 Neon (Medium)
BBareth commented 2026-11-30 19:40:30 +00:00 (Migrated from github.com)

Imported from ivall/xcl. Originally posted by BBareth on 2026-11-30T19:40:30Z.


merge-check
base: ff0c364b3d
head: b509a70707
merge: clean
build: cargo build --workspace -> ok
tests: cargo test --workspace --no-fail-fast -- --test-threads=4 -> 2890 passed, 0 failed, 51 ignored; 28 SKIPPED lines, as on the base; failing: none. The base alone, run in the same batch: 2888 passed, 1 failed, 51 ignored, 28 SKIPPED lines; its one failure, hle::d3d12x::pso_async::used_tests::emission_resolves_the_retained_recipe_after_title_address_reuse, passed in this merged run and in the six others of the batch, so it is intermittent on the base and not this PR's. The new test a_negative_return_spec_is_not_wrapped_around_i64_min passed.
review: no blocking finding; one file, every hunk read. parse_ret now takes a decimal value as an i64 first and falls back to u64, so -1 is still 0xFFFF_FFFF_FFFF_FFFF, i64::MIN is accepted, a magnitude past it is refused where it used to come back positive, and -+1 / - are refused. Values 0 to i64::MAX give the same result on either path, and a whole u64 is still accepted; the hex branch is untouched. No GPU or game path involved.
performance: none: parsing of a configuration value at start-up.
verdict: safe to merge
hardware / tool and model: RTX 5070 Ti 16 GB, driver 621.24 (32.0.16.2124); i7-12700K; Windows 11 26200. Claude Code, Claude Fable 5.2 read the diff, ran the build and the suite and wrote this check.

<!-- greyfinch-sync:ivall/xcl:comment:7289764236 --> Imported from [ivall/xcl](https://github.com/xcl-dev/xcl/pull/1700#issuecomment-7289764236). Originally posted by [BBareth](https://github.com/BBareth) on 2026-11-30T19:40:30Z. --- merge-check base: ff0c364b3de011c13ed45865480c21918a79ec89 head: b509a70707bff971ca7e12e3560d4d0c5ccdf51d merge: clean build: cargo build --workspace -> ok tests: cargo test --workspace --no-fail-fast -- --test-threads=4 -> 2890 passed, 0 failed, 51 ignored; 28 SKIPPED lines, as on the base; failing: none. The base alone, run in the same batch: 2888 passed, 1 failed, 51 ignored, 28 SKIPPED lines; its one failure, `hle::d3d12x::pso_async::used_tests::emission_resolves_the_retained_recipe_after_title_address_reuse`, passed in this merged run and in the six others of the batch, so it is intermittent on the base and not this PR's. The new test `a_negative_return_spec_is_not_wrapped_around_i64_min` passed. review: no blocking finding; one file, every hunk read. `parse_ret` now takes a decimal value as an `i64` first and falls back to `u64`, so `-1` is still 0xFFFF_FFFF_FFFF_FFFF, `i64::MIN` is accepted, a magnitude past it is refused where it used to come back positive, and `-+1` / `-` are refused. Values 0 to `i64::MAX` give the same result on either path, and a whole `u64` is still accepted; the hex branch is untouched. No GPU or game path involved. performance: none: parsing of a configuration value at start-up. verdict: safe to merge hardware / tool and model: RTX 5070 Ti 16 GB, driver 621.24 (32.0.16.2124); i7-12700K; Windows 11 26200. Claude Code, Claude Fable 5.2 read the diff, ran the build and the suite and wrote this check.
Foniass commented 2026-12-01 06:31:47 +00:00 (Migrated from github.com)

Imported from ivall/xcl. Originally posted by Foniass on 2026-12-01T06:31:47Z.


Triage (#1607) – head b509a70

No open or merged PR makes the same change; util::parse_ret on main still negates the magnitude as u64. The new i64 parse gives the same results for -1 and i64::MIN and refuses values below i64::MIN (and -+1), which the test checks.
No problems found in the diff.
Recommendation: keep open.

AI review: Claude Code (Claude Opus 5.5), diffs read only, not built or run; not checked by a human.

<!-- greyfinch-sync:ivall/xcl:comment:7302977973 --> Imported from [ivall/xcl](https://github.com/xcl-dev/xcl/pull/1700#issuecomment-7302977973). Originally posted by [Foniass](https://github.com/Foniass) on 2026-12-01T06:31:47Z. --- **Triage (#1607)** – head b509a70 No open or merged PR makes the same change; `util::parse_ret` on main still negates the magnitude as u64. The new `i64` parse gives the same results for `-1` and `i64::MIN` and refuses values below `i64::MIN` (and `-+1`), which the test checks. No problems found in the diff. Recommendation: keep open. AI review: Claude Code (Claude Opus 5.5), diffs read only, not built or run; not checked by a human.
Sign in to join this conversation.
No reviewers
No labels
No milestone
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Reference
xcl-dev/xcl!1690
No description provided.