Update codeobject.h

This commit is contained in:
blueloveTH 2023-02-10 16:32:43 +08:00
parent b20e9b49c0
commit 4368dc3501

View File

@ -129,8 +129,7 @@ struct Frame {
: co(co), _module(_module), _locals(_locals), id(kFrameGlobalId++) { }
inline const Bytecode& next_bytecode() {
_ip = _next_ip;
_next_ip = _ip + 1;
_ip = _next_ip++;
return co->codes[_ip];
}