Skip to content

Commit

Permalink
allow building on 386 arch (#147)
Browse files Browse the repository at this point in the history
  • Loading branch information
harshavardhana authored Oct 30, 2022
1 parent 3df746f commit f1dab86
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 2 deletions.
10 changes: 9 additions & 1 deletion .github/workflows/go.yml
Original file line number Diff line number Diff line change
Expand Up @@ -51,5 +51,13 @@ jobs:
uses: actions/checkout@v1

- name: Test on ${{ matrix.os }}
if: matrix.os == 'ubuntu-latest'
run: |
go test -race ./...
go test -v -race ./...
GOARCH=386 GOOS=linux go test -v ./...
- name: Test on ${{ matrix.os }}
if: matrix.os != 'ubuntu-latest'
run: |
go test -v -race ./...
2 changes: 1 addition & 1 deletion estream/writer.go
Original file line number Diff line number Diff line change
Expand Up @@ -335,7 +335,7 @@ func (b *blockWriter) send() error {
}
// Add block id
hdr := msgp.AppendInt8(b.hdr[:0], int8(b.id))
if b.buf.Len() > math.MaxUint32 {
if uint32(b.buf.Len()) > math.MaxUint32 {
return errors.New("max block size exceeded")
}
// Add block length.
Expand Down

0 comments on commit f1dab86

Please sign in to comment.