about summary refs log tree commit diff
path: root/pkg/lang/vm/value/cells.go
diff options
context:
space:
mode:
Diffstat (limited to 'pkg/lang/vm/value/cells.go')
-rw-r--r--pkg/lang/vm/value/cells.go8
1 files changed, 4 insertions, 4 deletions
diff --git a/pkg/lang/vm/value/cells.go b/pkg/lang/vm/value/cells.go
index 17a0916..1c34762 100644
--- a/pkg/lang/vm/value/cells.go
+++ b/pkg/lang/vm/value/cells.go
@@ -4,7 +4,7 @@ import "jinx/pkg/lang/vm/mem"
 
 type ArrayCell []Value
 
-func (a ArrayCell) DropCell(m *mem.Mem) {
+func (a ArrayCell) DropCell(m mem.Mem) {
 	for _, v := range a {
 		v.Drop(m)
 	}
@@ -16,7 +16,7 @@ func (a ArrayCell) Get() []Value {
 
 type StringCell string
 
-func (s StringCell) DropCell(m *mem.Mem) {
+func (s StringCell) DropCell(m mem.Mem) {
 }
 
 func (s StringCell) Get() string {
@@ -25,7 +25,7 @@ func (s StringCell) Get() string {
 
 type OutletCell Value
 
-func (o OutletCell) DropCell(m *mem.Mem) {
+func (o OutletCell) DropCell(m mem.Mem) {
 	Value(o).Drop(m)
 }
 
@@ -35,7 +35,7 @@ func (o OutletCell) Get() Value {
 
 type EnvCell Env
 
-func (e EnvCell) DropCell(m *mem.Mem) {
+func (e EnvCell) DropCell(m mem.Mem) {
 	for _, v := range e.references {
 		m.Release(v.outlet)
 	}