Răsfoiți Sursa

Update codeobject.h

blueloveTH 3 ani în urmă
părinte
comite
4368dc3501
1 a modificat fișierele cu 1 adăugiri și 2 ștergeri
  1. 1 2
      src/codeobject.h

+ 1 - 2
src/codeobject.h

@@ -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];
     }