diff --git a/v8go.cc b/v8go.cc index 8fa71141..b22cc734 100644 --- a/v8go.cc +++ b/v8go.cc @@ -1298,7 +1298,7 @@ RtnStrings ObjectGetPropertyNames(ValuePtr ptr) { Local names = maybe_names.ToLocalChecked(); uint32_t length = names->Length(); - const char *strings[length]; + const char* strings[length]; for (int i = 0; i < length; i++) { Local name_from_array = names->Get(local_ctx, i).ToLocalChecked(); diff --git a/v8go.h b/v8go.h index e26b631e..84eb8080 100644 --- a/v8go.h +++ b/v8go.h @@ -111,7 +111,7 @@ typedef struct { } RtnString; typedef struct { - const char **strings; + const char** strings; int length; RtnError error; } RtnStrings;