Fixed a bug in RVM_MATCH

This commit is contained in:
Dan Hirsch 2013-03-17 22:44:30 -07:00
parent f5245eaa23
commit 99f4e18f1f

View file

@ -115,7 +115,7 @@ void* h_rvm_run__m(HAllocator *mm__, HRVMProg *prog, const uint8_t* input, size_
hi = (arg >> 8) & 0xff; hi = (arg >> 8) & 0xff;
lo = arg & 0xff; lo = arg & 0xff;
THREAD.ip++; THREAD.ip++;
if (ch < lo && ch > hi) if (ch < lo || ch > hi)
ipq_top--; // terminate thread ipq_top--; // terminate thread
goto next_insn; goto next_insn;
case RVM_GOTO: case RVM_GOTO: