This commit is contained in:
BLUELOVETH 2023-06-17 19:25:42 +08:00 committed by GitHub
parent 78410fc79a
commit 324f85b9c5
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -418,7 +418,7 @@ bool pkpy_to_string(pkpy_vm* vm_handle, int index, char** ret) {
ERRHANDLER_CLOSE
}
bool pkpy_to_stringn(pkpy_vm* vm_handle, int index, char** ret, int* size) {
bool pkpy_to_stringn(pkpy_vm* vm_handle, int index, const char** ret, int* size) {
CVM* vm = (CVM*) vm_handle;
ERRHANDLER_OPEN
index = lua_to_cstack_index(index, vm->c_data->size());