mirror of
https://github.com/ethereum/go-ethereum.git
synced 2026-07-25 06:06:44 +00:00
Merge 22c5f01950 into a269a713d6
This commit is contained in:
commit
1d1d077811
1 changed files with 1 additions and 1 deletions
|
|
@ -96,7 +96,7 @@ func packNum(value reflect.Value, to byte) []byte {
|
||||||
return S2S256(int64(value.Uint()))
|
return S2S256(int64(value.Uint()))
|
||||||
}
|
}
|
||||||
case reflect.Int, reflect.Int8, reflect.Int16, reflect.Int32, reflect.Int64:
|
case reflect.Int, reflect.Int8, reflect.Int16, reflect.Int32, reflect.Int64:
|
||||||
if to == UintTy {
|
if to == IntTy {
|
||||||
return U2U256(uint64(value.Int()))
|
return U2U256(uint64(value.Int()))
|
||||||
} else {
|
} else {
|
||||||
return S2S256(value.Int())
|
return S2S256(value.Int())
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue