diff --git a/ChangeLog b/ChangeLog index bfe8e79791..2cd878e3f9 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,7 @@ +Mon Mar 9 06:00:37 2015 Koichi Sasada + + * vm_insnhelper.h (COPY_CREF_OMOD): fix translation miss. + Mon Mar 9 04:47:58 2015 Koichi Sasada * internal.h: define CREF accessor macros. diff --git a/vm_insnhelper.h b/vm_insnhelper.h index 6cbf8b6fa9..20edcc62e7 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); \ } \