Skip to content

Commit

Permalink
Merge pull request #1192 from nats-io/pdp/linux_arm_6
Browse files Browse the repository at this point in the history
avoid int overflow compile errors for 32-bit target
  • Loading branch information
ripienaar authored Dec 10, 2024
2 parents 3f5d5f9 + bf928de commit 234eda9
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion internal/asciigraph/asciigraph.go
Original file line number Diff line number Diff line change
Expand Up @@ -134,7 +134,8 @@ func PlotMany(data [][]float64, options ...Option) string {
precision = 0
}

maxNumLength, minNumLength := 0, math.MaxInt64
// Beware that MaxInt64 will fail on supported 32-bit targets
maxNumLength, minNumLength := 0, math.MaxInt
var magnitudes []float64

if config.ValueFormatter == nil {
Expand Down

0 comments on commit 234eda9

Please sign in to comment.