Skip to content

Commit a494d18

Browse files
bysomeone33cn
authored andcommitted
[[FIX]] fix 32 bit machine build
1 parent fc654e9 commit a494d18

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

types/sign.go

+2-2
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ import (
1212
const (
1313

1414
// CryptoIDMask crypto type id mask
15-
CryptoIDMask = 0xffff8fff
15+
CryptoIDMask = 0x3fff8fff
1616
// AddressIDMask address id mask
1717
AddressIDMask = 0x00007000
1818
// AddressIDOffset offset len
@@ -34,7 +34,7 @@ func ExtractAddressID(signID int32) int32 {
3434

3535
// ExtractCryptoID extract crypto id from signature type id
3636
func ExtractCryptoID(signID int32) int32 {
37-
return int32(int(signID) & CryptoIDMask)
37+
return signID & CryptoIDMask
3838
}
3939

4040
//GetSignName 获取签名类型

0 commit comments

Comments
 (0)