Fix VM memory allocation optimizations by reducing what we allocate on the heap
This commit is contained in:
@@ -17,6 +17,6 @@ func Hex(args ...object.Object) object.Object {
|
||||
return newError(err.Error())
|
||||
}
|
||||
|
||||
i := args[0].(*object.Integer)
|
||||
return &object.String{Value: fmt.Sprintf("0x%s", strconv.FormatInt(i.Value, 16))}
|
||||
i := args[0].(object.Integer)
|
||||
return object.String{Value: fmt.Sprintf("0x%s", strconv.FormatInt(i.Value, 16))}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user