Switched to pointer receivers for values
This commit is contained in:
@ -6,14 +6,14 @@ import (
|
||||
)
|
||||
|
||||
// EvaluateCall evaluates a function call.
|
||||
func (f *Function) EvaluateCall(expr *expression.Expression) (eval.Register, error) {
|
||||
func (f *Function) EvaluateCall(expr *expression.Expression) (*eval.Register, error) {
|
||||
typ, err := f.CompileCall(expr)
|
||||
|
||||
if err != nil {
|
||||
return eval.Register{}, err
|
||||
return nil, err
|
||||
}
|
||||
|
||||
value := eval.Register{Register: f.CPU.Output[0]}
|
||||
value := &eval.Register{Register: f.CPU.Output[0]}
|
||||
|
||||
if len(typ) > 0 {
|
||||
value.Typ = typ[0]
|
||||
|
Reference in New Issue
Block a user