zig icon indicating copy to clipboard operation
zig copied to clipboard

std.math.big.int.Managed: adjust size of arg for limbs_buffer in format()

Open poypoyan opened this issue 1 year ago • 0 comments

Fixes: #19787

Error occurs because in the current code, the size of limbs (hard-coded to 128) can be less than the calcToStringLimbsBufferLen, which is the minimum according to toString() documentation.

Also updated the doc and added tests for "(BigInt)" printing.

poypoyan avatar May 13 '24 13:05 poypoyan