This commit is contained in:
blueloveTH 2023-10-19 01:29:04 +08:00
parent 901f702f00
commit 27be56fceb

View File

@ -593,6 +593,7 @@ inline PyObject* py_var(VM* vm, const char* val){
template<>
inline const char* py_cast<const char*>(VM* vm, PyObject* obj){
if(obj == vm->None) return nullptr;
vm->check_non_tagged_type(obj, vm->tp_str);
return PK_OBJ_GET(Str, obj).c_str();
}