summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--ChangeLog5
-rw-r--r--regcomp.c2
2 files changed, 6 insertions, 1 deletions
diff --git a/ChangeLog b/ChangeLog
index b937b5f..85af8f1 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+Tue Oct 4 06:05:46 2016 NARUSE, Yui <naruse@ruby-lang.org>
+
+ * regcomp.c (onig_print_compiled_byte_code): make the shown address
+ look relative.
+
Tue Oct 4 05:53:11 2016 NARUSE, Yui <naruse@ruby-lang.org>
* regexec.c (OPCODE_EXEC_HOOK): op is p-1 because p is already
diff --git a/regcomp.c b/regcomp.c
index 869299c..4364beb 100644
--- a/regcomp.c
+++ b/regcomp.c
@@ -6318,7 +6318,7 @@ onig_print_compiled_byte_code(FILE* f, UChar* bp, UChar* bpend, UChar** nextp,
break;
case ARG_RELADDR:
GET_RELADDR_INC(addr, bp);
- fprintf(f, ":(%d)", addr);
+ fprintf(f, ":(+%d)", addr);
break;
case ARG_ABSADDR:
GET_ABSADDR_INC(addr, bp);