Skip to content

Commit afef8a0

Browse files
committed
Fix build errors in VirtualMachinePrivate
1 parent 92a8a2b commit afef8a0

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

src/engine/virtualmachine_p.cpp

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -236,7 +236,7 @@ unsigned int *VirtualMachinePrivate::run(unsigned int *pos, bool reset)
236236
checkpoint = pos - 1;
237237
DISPATCH();
238238

239-
do_if:
239+
do_if : {
240240
if (!READ_LAST_REG()->toBool()) {
241241
unsigned int ifCounter = 1;
242242
while (!((*pos == OP_ELSE && ifCounter == 1) || (*pos == OP_ENDIF && ifCounter == 0))) {
@@ -252,8 +252,9 @@ unsigned int *VirtualMachinePrivate::run(unsigned int *pos, bool reset)
252252
}
253253
FREE_REGS(1);
254254
DISPATCH();
255+
}
255256

256-
do_else:
257+
do_else : {
257258
unsigned int ifCounter = 1;
258259
while (!(*pos == OP_ENDIF && ifCounter == 0)) {
259260
pos += instruction_arg_count[*pos++];
@@ -267,6 +268,7 @@ unsigned int *VirtualMachinePrivate::run(unsigned int *pos, bool reset)
267268

268269
assert(!(*pos == OP_ELSE && ifCounter == 1));
269270
}
271+
}
270272

271273
do_endif:
272274
DISPATCH();

0 commit comments

Comments
 (0)