internal/pkg: make CallCtxt.Decimal support *adt.Vertex
The cue.Value.Decimal method currently makes the assumption that
its function argument is an *adt.Num. This means that the "Validator"
form of the builtin math.MultipleOf(n) will not work, because in that
case the first argument will be an *adt.Vertex.
This changes the explicit interface convertion to instead use the
cue.value.Decimal method, which will work in all cases.
Fixes #2927
Signed-off-by: Noam Dolovich <noam.tzvi.dolovich@gmail.com>
Change-Id: I35f780efde92a6523548ed04e1e7a6a960b191ce
Reviewed-on: https://review.gerrithub.io/c/cue-lang/cue/+/1184631
Reviewed-by: Daniel Martí <mvdan@mvdan.cc>
Unity-Result: CUE porcuepine <cue.porcuepine@gmail.com>
TryBot-Result: CUEcueckoo <cueckoo@cuelang.org>
authored by