summaryrefslogtreecommitdiffstats
path: root/vendor/github.com/d5/tengo/objects/bytes.go
diff options
context:
space:
mode:
Diffstat (limited to 'vendor/github.com/d5/tengo/objects/bytes.go')
-rw-r--r--vendor/github.com/d5/tengo/objects/bytes.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/vendor/github.com/d5/tengo/objects/bytes.go b/vendor/github.com/d5/tengo/objects/bytes.go
index 6710c7c1..5159c22f 100644
--- a/vendor/github.com/d5/tengo/objects/bytes.go
+++ b/vendor/github.com/d5/tengo/objects/bytes.go
@@ -57,7 +57,7 @@ func (o *Bytes) Equals(x Object) bool {
return false
}
- return bytes.Compare(o.Value, t.Value) == 0
+ return bytes.Equal(o.Value, t.Value)
}
// IndexGet returns an element (as Int) at a given index.