Skip to content

Commit

Permalink
Fix bad merge of #4980 (#4985)
Browse files Browse the repository at this point in the history
  • Loading branch information
nwt authored Jan 15, 2024
1 parent e87d3e8 commit cebfb3a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions runtime/expr/cast.go
Original file line number Diff line number Diff line change
Expand Up @@ -297,7 +297,7 @@ type casterType struct {
zctx *zed.Context
}

func (c *casterType) Eval(ectx Context, val *zed.Value) *zed.Value {
func (c *casterType) Eval(ectx Context, val zed.Value) zed.Value {
id := val.Type().ID()
if id == zed.IDType {
return val
Expand All @@ -312,5 +312,5 @@ func (c *casterType) Eval(ectx Context, val *zed.Value) *zed.Value {
if typval.Type().ID() != zed.IDType {
return c.zctx.WrapError("cannot cast to type", val)
}
return ectx.CopyValue(*typval)
return typval
}

0 comments on commit cebfb3a

Please sign in to comment.