]> granicus.if.org Git - onig/commitdiff
fix compile error when USE_THREADED_CODE is disabled
authorK.Kosako <kosako@sofnec.co.jp>
Thu, 14 Feb 2019 08:49:47 +0000 (17:49 +0900)
committerK.Kosako <kosako@sofnec.co.jp>
Thu, 28 Feb 2019 05:28:18 +0000 (14:28 +0900)
src/regexec.c

index 7c7a5a9efa62426adc8c02762204b045e3bfa9ef..2a60f64acf28ed98c73f56a44a21cec50f5fd642 100644 (file)
@@ -2388,7 +2388,7 @@ typedef struct {
   while (1) {\
   MATCH_DEBUG_OUT(0)\
   sbegin = s;\
-  switch (*p++) {
+  switch (p->opcode) {
 #define BYTECODE_INTERPRETER_END  } sprev = sbegin; }
 #define CASE_OP(x)   case OP_##x: SOP_IN(OP_##x);
 #define DEFAULT_OP   default: