Skip to content

Commit

Permalink
Merge pull request #132 from ordishs/master
Browse files Browse the repository at this point in the history
Remove overflow warning when running on 32 bit architecture
  • Loading branch information
ordishs authored Jan 5, 2023
2 parents 4766f6a + 3743c11 commit f7971e5
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions bscript/script.go
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ import (
"encoding/binary"
"encoding/hex"
"fmt"
"math/bits"
"strings"

"github.com/libsv/go-bk/bec"
Expand Down Expand Up @@ -427,8 +428,8 @@ func (s *Script) EqualsHex(h string) bool {
func MinPushSize(bb []byte) int {
l := len(bb)

// data length is larger than max supported
if l > 0xffffffff {
// data length is larger than max supported by the bitcoin protocol
if bits.UintSize == 64 && int64(l) > 0xffffffff {
return 0
}

Expand Down

0 comments on commit f7971e5

Please sign in to comment.