ruby-changes:43986
From: nobu <ko1@a...>
Date: Fri, 2 Sep 2016 16:07:07 +0900 (JST)
Subject: [ruby-changes:43986] nobu:r56059 (trunk): internal.h: fix typos
nobu 2016-09-02 16:07:01 +0900 (Fri, 02 Sep 2016) New Revision: 56059 https://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=revision&revision=56059 Log: internal.h: fix typos * internal.h (MEMO_V1_SET, MEMO_V2_SET): fix typos. use the macro parameter, not the local variable. Modified files: trunk/ChangeLog trunk/internal.h Index: ChangeLog =================================================================== --- ChangeLog (revision 56058) +++ ChangeLog (revision 56059) @@ -1,3 +1,8 @@ https://github.com/ruby/ruby/blob/trunk/ChangeLog#L1 +Fri Sep 2 16:06:59 2016 Nobuyoshi Nakada <nobu@r...> + + * internal.h (MEMO_V1_SET, MEMO_V2_SET): fix typos. use the macro + parameter, not the local variable. + Fri Sep 2 00:55:11 2016 Nobuyoshi Nakada <nobu@r...> * ext/extmk.rb (timestamp_file): move extmk.rb specific tricks Index: internal.h =================================================================== --- internal.h (revision 56058) +++ internal.h (revision 56059) @@ -812,8 +812,8 @@ struct MEMO { https://github.com/ruby/ruby/blob/trunk/internal.h#L812 } u3; }; -#define MEMO_V1_SET(m, v) RB_OBJ_WRITE((memo), &(memo)->v1, (v)) -#define MEMO_V2_SET(m, v) RB_OBJ_WRITE((memo), &(memo)->v2, (v)) +#define MEMO_V1_SET(m, v) RB_OBJ_WRITE((m), &(m)->v1, (v)) +#define MEMO_V2_SET(m, v) RB_OBJ_WRITE((m), &(m)->v2, (v)) #define MEMO_CAST(m) ((struct MEMO *)m) -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/