Skip to content

Commit f1dab86

Browse files
allow building on 386 arch (#147)
1 parent 3df746f commit f1dab86

File tree

2 files changed

+10
-2
lines changed

2 files changed

+10
-2
lines changed

.github/workflows/go.yml

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,5 +51,13 @@ jobs:
5151
uses: actions/checkout@v1
5252

5353
- name: Test on ${{ matrix.os }}
54+
if: matrix.os == 'ubuntu-latest'
5455
run: |
55-
go test -race ./...
56+
go test -v -race ./...
57+
GOARCH=386 GOOS=linux go test -v ./...
58+
59+
- name: Test on ${{ matrix.os }}
60+
if: matrix.os != 'ubuntu-latest'
61+
run: |
62+
go test -v -race ./...
63+

estream/writer.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -335,7 +335,7 @@ func (b *blockWriter) send() error {
335335
}
336336
// Add block id
337337
hdr := msgp.AppendInt8(b.hdr[:0], int8(b.id))
338-
if b.buf.Len() > math.MaxUint32 {
338+
if uint32(b.buf.Len()) > math.MaxUint32 {
339339
return errors.New("max block size exceeded")
340340
}
341341
// Add block length.

0 commit comments

Comments
 (0)