From 37c12732f9dbe1cb2a6fb5d8b27aca47fcb51109 Mon Sep 17 00:00:00 2001 From: albertony <12441419+albertony@users.noreply.github.com> Date: Thu, 15 Aug 2024 20:31:26 +0200 Subject: [PATCH] lib: fix incorrect conversion between integer types --- lib/encoder/encoder.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/encoder/encoder.go b/lib/encoder/encoder.go index 5efc8a99d..b1ff541a3 100644 --- a/lib/encoder/encoder.go +++ b/lib/encoder/encoder.go @@ -190,7 +190,7 @@ func (mask *MultiEncoder) Set(in string) error { if bits, ok := nameToEncoding[part]; ok { out |= bits } else { - i, err := strconv.ParseInt(part, 0, 64) + i, err := strconv.ParseUint(part, 0, 0) if err != nil { return fmt.Errorf("bad encoding %q: possible values are: %s", part, validStrings()) }