Skip to content

Commit

Permalink
fix: Change the propkeys from int to int64
Browse files Browse the repository at this point in the history
 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.
  • Loading branch information
hugoleodev authored and aymanbagabas committed May 9, 2024
1 parent 3ee5dca commit 2fe044a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions style.go
Expand Up @@ -11,7 +11,7 @@ import (
const tabWidthDefault = 4

// Property for a key.
type propKey int
type propKey int64

// Available properties.
const (
Expand Down Expand Up @@ -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 {
Expand Down

0 comments on commit 2fe044a

Please sign in to comment.