logo

9utils

Collection of utilities inspired by Plan9
commit: dc0201b0667f2846e65cc6550de22ae936cd2d51
parent d1f57068b9f37b2eb47f6e8ba7ee021704b081e3
Author: Haelwenn (lanodan) Monnier <contact@hacktivis.me>
Date:   Sun, 28 Jul 2024 05:25:33 +0200

cmd/unicode: strconv::stou32b -> strconv::stou32 (hare 0.24.2)

Diffstat:

Mcmd/unicode.ha6+++---
1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/cmd/unicode.ha b/cmd/unicode.ha @@ -30,14 +30,14 @@ fn table(args: []str) void = { const arg = args[i]; let (min, max) = strings::cut(arg, "-"); - let min = match(strconv::stou32b(min, strconv::base::HEX)) { + let min = match(strconv::stou32(min, strconv::base::HEX)) { case let u: u32 => yield u; case strconv::overflow => fmt::fatalf("unicode: Integer overflow with hexmin argument: {}", arg); case strconv::invalid => fmt::fatalf("unicode: Expected hexadecimal for hexmin, got: {}", arg); }; - let max = match(strconv::stou32b(max, strconv::base::HEX)) { + let max = match(strconv::stou32(max, strconv::base::HEX)) { case let u: u32 => yield u; case strconv::overflow => fmt::fatalf("unicode: Integer overflow with hexmax argument: {}", arg); @@ -97,7 +97,7 @@ fn encode(args: []str) void = { for(let i = 0z; i < len(args); i += 1) { const arg = args[i]; - const r = match(strconv::stou32b(arg, strconv::base::HEX)) { + const r = match(strconv::stou32(arg, strconv::base::HEX)) { case let u: u32 => yield u: rune; case strconv::overflow =>