Page MenuHomePhabricator

[64-bit ints] Render 63+sign-bit ints in `ScriptToAsmStr`
ClosedPublic

Authored by tobias_ruck on Aug 8 2025, 14:05.

Details

Reviewers
Fabien
Group Reviewers
Restricted Project
Commits
rABC2fea6b2b0dff: [64-bit ints] Render 63+sign-bit ints in `ScriptToAsmStr`
Summary

Currently, this doesn't support numbers outside of 4 bytes in size, which excludes many 63+sign-bit numbers.

However, simply raising the number of bytes might be too aggressive, as it might start to render legitimate byte strings as decimal numbers.

Therefore, we instead check if the number is also minimally encoded, so only numbers that would be valid in the Script interpreter will be rendered as decimal numbers.

Depends on D18461.

Test Plan

ninja check

Diff Detail