mirror of
https://github.com/pocketpy/pocketpy
synced 2025-10-22 04:20:17 +00:00
fix a bug
This commit is contained in:
parent
4eff4ea076
commit
f67861b24e
@ -55,7 +55,7 @@ PyVar VM::run_frame(Frame* frame){
|
||||
if(byte.op == OP_FAST_INDEX) frame->push(ref.get(this, frame));
|
||||
else frame->push(PyRef(ref));
|
||||
} continue;
|
||||
case OP_ROT_TWO: std::swap(frame->top(), frame->top_1()); continue;
|
||||
case OP_ROT_TWO: ::std::swap(frame->top(), frame->top_1()); continue;
|
||||
case OP_STORE_REF: {
|
||||
// PyVar obj = frame->pop_value(this);
|
||||
// PyVarRef r = frame->pop();
|
||||
|
@ -26,6 +26,7 @@
|
||||
#include <map>
|
||||
#include <set>
|
||||
#include <algorithm>
|
||||
#include <fstream>
|
||||
|
||||
#define PK_VERSION "0.9.1"
|
||||
|
||||
@ -43,6 +44,8 @@ typedef double f64;
|
||||
|
||||
namespace pkpy{
|
||||
|
||||
namespace std = ::std;
|
||||
|
||||
struct Dummy { };
|
||||
struct DummyInstance { };
|
||||
struct DummyModule { };
|
||||
|
@ -615,7 +615,6 @@ void add_module_dis(VM* vm){
|
||||
});
|
||||
}
|
||||
|
||||
#include <fstream>
|
||||
struct FileIO {
|
||||
PY_CLASS(io, FileIO)
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user