]> Nishi Git Mirror - gwion.git/commitdiff
:art: Fix narrowed type in loop
authorJérémie Astor <fennecdjay@gmail.com>
Sat, 27 Feb 2021 18:26:04 +0000 (19:26 +0100)
committerJérémie Astor <fennecdjay@gmail.com>
Sat, 27 Feb 2021 18:26:04 +0000 (19:26 +0100)
src/vm/vm_code.c

index 11ea745b12fac2d890fe5e6d330a49e23133b0bd..3c1194c2a880a3a3a0370d425971ef269a5e4fcc 100644 (file)
@@ -122,7 +122,7 @@ ANN static m_bit* tobytecode(MemPool p, const VM_Code code) {
             *const data = final + j*BYTECODE_SZ;
       memcpy(data, base, BYTECODE_SZ);
       if(isgoto(opcode)) {
-        m_bit pc = 0;
+        m_uint pc = 0;
         for(pc = 0; pc < vector_size(&nop); ++pc) {
           if(instr->m_val <= vector_at(&nop, pc))
             break;