Skip to content

Commit 10a3ef7

Browse files
author
AJ ONeal
committed
build: turn off cgo, duh
1 parent 6d73209 commit 10a3ef7

File tree

2 files changed

+6
-4
lines changed

2 files changed

+6
-4
lines changed

.goreleaser.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8,11 +8,11 @@ builds:
88
- id: dashmsg-default
99
main: ./cmd/dashmsg/
1010
env:
11-
- CGO_ENABLED=1
11+
- CGO_ENABLED=0
1212
goos:
1313
- darwin
14-
#- linux
15-
#- windows
14+
- linux
15+
- windows
1616
goarch:
1717
- amd64
1818
- arm64

dashmsg.go

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -184,10 +184,12 @@ func DoubleHash(buf []byte) []byte {
184184
}
185185

186186
// EncodeToBCVarint is a special variable-width byte encoding for 8, 16, 32, or 64-bit integers. For integers less than 253 bytes it uses a single bit. 253, 254, and 255 signify a 16, 32, and 64-bit (2, 4, and 8-byte) little-endian encodings respectively.
187-
func EncodeToBCVarint(n int) []byte {
187+
func EncodeToBCVarint(m int) []byte {
188188
// See https://wiki.bitcoinsv.io/index.php/VarInt
189189
var buf []byte
190190

191+
n := int64(m)
192+
191193
if n < 253 {
192194
buf = make([]byte, 1)
193195
buf[0] = byte(n)

0 commit comments

Comments
 (0)