This commit is contained in:
blueloveTH 2023-10-14 01:07:49 +08:00
parent 31cbb8b652
commit 6c821f35ea
2 changed files with 5 additions and 2 deletions

View File

@ -22,7 +22,7 @@
#include <random>
#include <bitset>
#define PK_VERSION "1.2.5"
#define PK_VERSION "1.2.6"
#include "config.h"
#include "export.h"

View File

@ -577,7 +577,10 @@ __NEXT_STEP:;
TOP() = py_negate(TOP());
DISPATCH();
TARGET(UNARY_NOT)
TOP() = VAR(!py_bool(TOP()));
_0 = TOP();
if(_0==True) TOP()=False;
else if(_0==False) TOP()=True;
else TOP() = VAR(!py_bool(_0));
DISPATCH();
TARGET(UNARY_STAR)
TOP() = VAR(StarWrapper(byte.arg, TOP()));