mirror of
https://github.com/pocketpy/pocketpy
synced 2025-10-22 04:20:17 +00:00
fix RE
This commit is contained in:
parent
f4e9293643
commit
73c9c5a228
@ -34,7 +34,7 @@ struct Dict : private pkpy_Dict {
|
||||
PyVar try_get(VM* vm, PyVar key) const {
|
||||
auto res = pkpy_Dict__try_get(this, vm, *reinterpret_cast<::pkpy_Var*>(&key));
|
||||
if (!res) return nullptr;
|
||||
return PyVar(*reinterpret_cast<PyVar*>(&res));
|
||||
return *reinterpret_cast<const PyVar*>(res);
|
||||
}
|
||||
|
||||
bool contains(VM* vm, PyVar key) const {
|
||||
|
@ -12,7 +12,8 @@ extern "C" {
|
||||
*/
|
||||
typedef struct {
|
||||
int type;
|
||||
int _0, _1, _2;
|
||||
int _0;
|
||||
int64_t _1;
|
||||
} pkpy_Var;
|
||||
|
||||
/**
|
||||
|
Loading…
x
Reference in New Issue
Block a user