Commit Graph
3 Commits
Author SHA1 Message Date
upstream b17a55589a Upstream gookit/goutil state of the touched files before 949a07a2cc 2026-09-04 09:07:10 +02:00
dualfroz d6c91f3cdd fix(strutil): return zero digit instead of empty string in base conversion
BaseConvIntByTpl returned an empty string for the value zero because its
loop condition (dec > 0) was never entered. This affected BaseConv,
Base10Conv and BaseConvInt for bases above 62, and was inconsistent with
BaseConvInt for smaller bases which correctly returned "0" via strconv.

Emit the zero digit of the target base for a zero input and guard against
an empty template.
2026-09-04 09:00:39 +02:00
upstream 17b49be136 Upstream gookit/goutil state of the touched files before 5ac074d77b 2026-09-04 09:00:39 +02:00