value_context.go: Bugfix for missing float and double cases in Values()

Related to 325de3c
pull/52/head
Dustin Oprea 2020-12-15 01:18:58 -05:00
parent fe4ea0ee06
commit 64f5c6ad03
1 changed files with 6 additions and 0 deletions

View File

@ -439,6 +439,12 @@ func (vc *ValueContext) Values() (values interface{}, err error) {
} else if vc.tagType == TypeSignedRational {
values, err = vc.ReadSignedRationals()
log.PanicIf(err)
} else if vc.tagType == TypeFloat {
values, err = vc.ReadFloats()
log.PanicIf(err)
} else if vc.tagType == TypeDouble {
values, err = vc.ReadDoubles()
log.PanicIf(err)
} else if vc.tagType == TypeUndefined {
log.Panicf("will not parse undefined-type value")