From 2fe044adcb06371220c9abff05acbf714f715dc1 Mon Sep 17 00:00:00 2001 From: Hugo Leonardo Costa e Silva Date: Thu, 9 May 2024 13:07:41 -0300 Subject: [PATCH] fix: Change the propkeys from int to int64 When I create binaries for each OS using goreleaser, the propKeys generates an int overflow since the iota duplicates for each propKey This commit changes the int type to works well with binaries generated for arm and i386 archs. --- style.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/style.go b/style.go index 198751ce..c1e05c04 100644 --- a/style.go +++ b/style.go @@ -11,7 +11,7 @@ import ( const tabWidthDefault = 4 // Property for a key. -type propKey int +type propKey int64 // Available properties. const ( @@ -78,7 +78,7 @@ const ( ) // props is a set of properties. -type props int +type props int64 // set sets a property. func (p props) set(k propKey) props {