Skip to content

Commit

Permalink
[[FIX]] fix 32 bit machine build
Browse files Browse the repository at this point in the history
  • Loading branch information
bysomeone authored and 33cn committed Mar 28, 2022
1 parent fc654e9 commit a494d18
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions types/sign.go
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ import (
const (

// CryptoIDMask crypto type id mask
CryptoIDMask = 0xffff8fff
CryptoIDMask = 0x3fff8fff
// AddressIDMask address id mask
AddressIDMask = 0x00007000
// AddressIDOffset offset len
Expand All @@ -34,7 +34,7 @@ func ExtractAddressID(signID int32) int32 {

// ExtractCryptoID extract crypto id from signature type id
func ExtractCryptoID(signID int32) int32 {
return int32(int(signID) & CryptoIDMask)
return signID & CryptoIDMask
}

//GetSignName 获取签名类型
Expand Down

0 comments on commit a494d18

Please sign in to comment.