vm: allow to emit int[32, 16, 8] and some of uints
This commit is contained in:
parent
6b105e6d10
commit
48355ba9bf
1 changed files with 14 additions and 0 deletions
|
@ -82,6 +82,20 @@ func Array(w *io.BinWriter, es ...interface{}) {
|
||||||
Array(w, e...)
|
Array(w, e...)
|
||||||
case int64:
|
case int64:
|
||||||
Int(w, e)
|
Int(w, e)
|
||||||
|
case int32:
|
||||||
|
Int(w, int64(e))
|
||||||
|
case uint32:
|
||||||
|
Int(w, int64(e))
|
||||||
|
case int16:
|
||||||
|
Int(w, int64(e))
|
||||||
|
case uint16:
|
||||||
|
Int(w, int64(e))
|
||||||
|
case int8:
|
||||||
|
Int(w, int64(e))
|
||||||
|
case uint8:
|
||||||
|
Int(w, int64(e))
|
||||||
|
case int:
|
||||||
|
Int(w, int64(e))
|
||||||
case *big.Int:
|
case *big.Int:
|
||||||
bigInt(w, e)
|
bigInt(w, e)
|
||||||
case string:
|
case string:
|
||||||
|
|
Loading…
Reference in a new issue