From 2ac659b7bdf5bfee26c9212195086f58254c9f72 Mon Sep 17 00:00:00 2001 From: Peter Bourgon Date: Wed, 13 Mar 2024 14:51:33 +0100 Subject: [PATCH] s/int8/byte/ --- ulid.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ulid.go b/ulid.go index d7b99d3..73eb6b8 100644 --- a/ulid.go +++ b/ulid.go @@ -362,7 +362,7 @@ func (id ULID) MarshalTextTo(dst []byte) error { // Byte to index table for O(1) lookups when unmarshaling. // We use 0xFF as sentinel value for invalid indexes. -var dec = [...]int8{ +var dec = [...]byte{ 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF,