Support decoding for uintptr type

This commit is contained in:
Masaaki Goshima 2020-08-19 19:56:29 +09:00
parent 27d0480952
commit b3305a6306
1 changed files with 2 additions and 0 deletions

View File

@ -34,6 +34,8 @@ func (d *Decoder) compile(typ *rtype) (decoder, error) {
return d.compileMap(typ) return d.compileMap(typ)
case reflect.Interface: case reflect.Interface:
return d.compileInterface(typ) return d.compileInterface(typ)
case reflect.Uintptr:
return d.compileUint()
case reflect.Int: case reflect.Int:
return d.compileInt() return d.compileInt()
case reflect.Int8: case reflect.Int8: