wip making reflection tests pass

This commit is contained in:
Thomas Pelletier
2021-02-19 19:26:46 -05:00
parent 4526154571
commit d24deebee3
3 changed files with 116 additions and 53 deletions
+4 -2
View File
@@ -189,7 +189,8 @@ func (u *unmarshaler) FloatValue(n float64) {
}
u.builder.Load()
} else {
u.err = u.builder.SetFloat(n)
u.err = u.builder.Set(reflect.ValueOf(&n))
//u.err = u.builder.SetFloat(n)
}
}
@@ -205,7 +206,8 @@ func (u *unmarshaler) IntValue(n int64) {
}
u.builder.Load()
} else {
u.err = u.builder.SetInt(n)
u.err = u.builder.Set(reflect.ValueOf(&n))
//u.err = u.builder.SetInt(n)
}
}