Skip to content

Commit

Permalink
Fixed missing break statement in a switch
Browse files Browse the repository at this point in the history
  • Loading branch information
jakogut committed Aug 13, 2011
1 parent bc52954 commit 9694e34
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tvm.c
Original file line number Diff line number Diff line change
Expand Up @@ -33,8 +33,8 @@ void run_vm(tvm_t* vm)

switch(vm->pProgram->instr[*instr_idx])
{
case 0x0: break;
case 0x1:
/* nop */ case 0x0: break;
/* interrupt */ case 0x1: break;
case 0x2: *arg0 = *arg1; break;
case 0x3: stack_push(vm->pMemory, arg0); break;
case 0x4: stack_pop(vm->pMemory, arg0); break;
Expand Down

0 comments on commit 9694e34

Please sign in to comment.