fix compile err on msvc

Signed-off-by: 李昂 <liang6516@outlook.com>
This commit is contained in:
李昂 2023-02-05 09:42:55 +00:00 committed by Gitee
parent 4451d6b504
commit c6db38c0a0
No known key found for this signature in database
GPG Key ID: 173E9B9CA92EEF8F

View File

@ -306,11 +306,11 @@ Arg* arg_setRef(Arg* self, char* name, PikaObj* obj);
Arg* arg_setObj(Arg* self, char* name, PikaObj* obj);
static inline Arg* arg_newObj(PikaObj* obj) {
return arg_setObj(NULL, "", (obj));
return arg_setObj(NULL, (char*)"", (obj));
}
static inline Arg* arg_newRef(PikaObj* obj) {
return arg_setRef(NULL, "", (obj));
return arg_setRef(NULL, (char*)"", (obj));
}
PikaObj* obj_importModuleWithByteCodeFrame(PikaObj* self,