summaryrefslogtreecommitdiff
path: root/vm_insnhelper.h
diff options
context:
space:
mode:
Diffstat (limited to 'vm_insnhelper.h')
-rw-r--r--vm_insnhelper.h2
1 files changed, 1 insertions, 1 deletions
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); \
} \