summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authornaruse <naruse@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2016-10-03 21:06:50 +0000
committernaruse <naruse@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2016-10-03 21:06:50 +0000
commit5d9b95a5c742e12e853418f5ce75bccaf25a98cf (patch)
tree9477a56f0dd5963d975037e7659c9ca939d9cbd6
parente342418e465844a38546ebc7d69e23405dc9eb42 (diff)
* regcomp.c (onig_print_compiled_byte_code): make the shown address
look relative. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@56333 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
-rw-r--r--ChangeLog5
-rw-r--r--regcomp.c2
2 files changed, 6 insertions, 1 deletions
diff --git a/ChangeLog b/ChangeLog
index b937b5fd65..85af8f1873 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 869299cc37..4364beb2cf 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);