From 93babe70bd2f4c780321b6b281b1f2b473686fe2 Mon Sep 17 00:00:00 2001 From: guoguangwu Date: Thu, 13 Jul 2023 16:52:10 +0800 Subject: [PATCH] chore: use make([]_Ctype_uint64_t, count) instead --- value.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/value.go b/value.go index 7ded7f20..9b77161d 100644 --- a/value.go +++ b/value.go @@ -125,7 +125,7 @@ func NewValue(iso *Isolate, val interface{}) (*Value, error) { bits := v.Bits() count = len(bits) - words := make([]C.uint64_t, count, count) + words := make([]C.uint64_t, count) for idx, word := range bits { words[idx] = C.uint64_t(word) }