Skip to content

Commit

Permalink
fix: exclude arm from x64 config
Browse files Browse the repository at this point in the history
  • Loading branch information
nrwiersma committed Sep 3, 2024
1 parent c2ac60e commit 6fe9014
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 1 deletion.
8 changes: 8 additions & 0 deletions config_arm.go
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
package avro

import "math"

// Max allocation size for an array due to the limit in number of bits in a heap address:
// https://github.com/golang/go/blob/7f76c00fc5678fa782708ba8fece63750cb89d03/src/runtime/malloc.go#L190
// 32-bit systems accept the full 32bit address space
const maxAllocSize = math.MaxInt
2 changes: 1 addition & 1 deletion config_x64.go
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
//go:build !386
//go:build !386 && !arm

package avro

Expand Down

0 comments on commit 6fe9014

Please sign in to comment.