Skip to content

Commit

Permalink
Merge pull request #72 from holiman/ci
Browse files Browse the repository at this point in the history
Add compatibility with Go 1.12
  • Loading branch information
chfast authored Jun 4, 2020
2 parents ca247c6 + 1448f63 commit 5c64e07
Show file tree
Hide file tree
Showing 2 changed files with 20 additions and 3 deletions.
21 changes: 19 additions & 2 deletions circle.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ commands:
jobs:

linux:
go114:
docker:
- image: cimg/go:1.14
steps:
Expand Down Expand Up @@ -56,9 +56,26 @@ jobs:
name: "Benchmark"
command: go test -run=- -bench=. -benchmem

go113:
docker:
- image: cimg/go:1.13
steps:
- checkout
- test

go112:
docker:
- image: cimg/go:1.12
steps:
- checkout
- test



workflows:
version: 2
uint256:
jobs:
- linux
- go114
- go113
- go112
2 changes: 1 addition & 1 deletion uint256.go
Original file line number Diff line number Diff line change
Expand Up @@ -382,7 +382,7 @@ func udivrem(quot, u []uint64, d *Int) (rem Int) {
}
}

shift := bits.LeadingZeros64(d[dLen-1])
shift := uint(bits.LeadingZeros64(d[dLen-1]))

var dnStorage Int
dn := dnStorage[:dLen]
Expand Down

0 comments on commit 5c64e07

Please sign in to comment.