abi: removed implicit type casting & refactored type parsing

This commit is contained in:
Jeffrey Wilcke
2016-03-31 23:54:47 +02:00
parent 968d8ffe94
commit a306e17a26
3 changed files with 80 additions and 53 deletions

View File

@ -186,7 +186,7 @@ func toGoSlice(i int, t Argument, output []byte) (interface{}, error) {
// argument in T.
func toGoType(i int, t Argument, output []byte) (interface{}, error) {
// we need to treat slices differently
if t.Type.Kind == reflect.Slice {
if t.Type.IsSlice {
return toGoSlice(i, t, output)
}