summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorko1 <ko1@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2015-03-08 21:01:31 +0000
committerko1 <ko1@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2015-03-08 21:01:31 +0000
commit2324c14d00c301467ac9a3a5fc95d812109e116f (patch)
tree7df1d5829bec7a03281046ada8a3e73476e8082f
parent720efd6947e2e34ee2b6bd59ca80cb73a416927e (diff)
* vm_insnhelper.h (COPY_CREF_OMOD): fix translation miss.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@49896 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
-rw-r--r--ChangeLog4
-rw-r--r--vm_insnhelper.h2
2 files changed, 5 insertions, 1 deletions
diff --git a/ChangeLog b/ChangeLog
index bfe8e79..2cd878e 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,7 @@
+Mon Mar 9 06:00:37 2015 Koichi Sasada <ko1@atdot.net>
+
+ * vm_insnhelper.h (COPY_CREF_OMOD): fix translation miss.
+
Mon Mar 9 04:47:58 2015 Koichi Sasada <ko1@atdot.net>
* internal.h: define CREF accessor macros.
diff --git a/vm_insnhelper.h b/vm_insnhelper.h
index 6cbf8b6..20edcc6 100644
--- a/vm_insnhelper.h
+++ b/vm_insnhelper.h
@@ -147,7 +147,7 @@ enum vm_regan_acttype {
#define COPY_CREF_OMOD(c1, c2) do { \
RB_OBJ_WRITE((c1), &CREF_REFINEMENTS(c1), CREF_REFINEMENTS(c2)); \
- if (!CREF_REFINEMENTS(c2)) { \
+ if (!NIL_P(CREF_REFINEMENTS(c2))) { \
CREF_OMOD_SHARED_SET(c1); \
CREF_OMOD_SHARED_SET(c2); \
} \