summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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); \
} \