ccall: follow the ABI on extending small integers #65270
All Vouch review confidence checks passed
Residual risk 0.17 = Change Risk (0.34) × (1 − Review Confidence (0.50)).
Review depth and reviewer attention state are adequate.
Model 1 · Change Risk (XGBoost)
Score: 0.34 · 81 lines diff across 1 files
Model 2 · Review Depth (DistilBERT)
Depth Score: 0.02 · 1 substantive comment(s)
Model 3 · Review Timing & Attention
Session adequacy: 100% · Reviewer familiarity: 70%
Bedrock Claude 3 · Risk Narration
(disconnected)
Groq Risk Narration
AWS Bedrock is currently disconnected. Generate high-confidence PR triage narration on-demand using Groq.
Model 1 · Change Risk Attribution
SHAP Weights
Shallow Review Depth
shallow_review_depth
0.344
Diff Size
diff_size
0.264
Ai Authored
ai_authored
0.050
Real PR Conversation Timeline
1 comments
"Review active on #65270"
general
weight: 0.35
maleadt
Follow the platform ABI on who extends small integers, prompted by the recent clang change in llvm/llvm-project#236450. ccall already extended its arguments as clang now does, but cfunction assumed its C callers did too, which many ABIs (including AArch64 Linux) don't guarantee. Now it only relies on that where the ABI requires it. Likewise, cfunction now extends its return value where the ABI requires it (such as on macOS), and ccall relies on that there. Correctly declared ccalls should be unaffected.
Also fix several ccalls with incorrectly sized boolean types, and some missing stdcall annotations.
Assisted-by: Claude Code (Claude Opus 5.5)