decode bool typed properly

This commit is contained in:
Mitchell Hashimoto 2015-11-07 00:29:51 -08:00
parent 3e6a61bda5
commit 8754ac7343

View File

@ -106,7 +106,7 @@ func (d *decoder) decodeBool(name string, node ast.Node, result reflect.Value) e
return err
}
result.SetBool(v)
result.Set(reflect.ValueOf(v))
return nil
}
}