[前][次][番号順一覧][スレッド一覧]

ruby-changes:63557

From: Aaron <ko1@a...>
Date: Tue, 10 Nov 2020 02:44:39 +0900 (JST)
Subject: [ruby-changes:63557] 2324584d46 (master): Update vm_insnhelper.c

https://git.ruby-lang.org/ruby.git/commit/?id=2324584d46

From 2324584d465fc36bc5ae9d8a10235f35d308552c Mon Sep 17 00:00:00 2001
From: Aaron Patterson <aaron.patterson@s...>
Date: Fri, 6 Nov 2020 12:51:13 -0800
Subject: Update vm_insnhelper.c

Co-authored-by: Takashi Kokubun <takashikkbn@g...>

diff --git a/vm_insnhelper.c b/vm_insnhelper.c
index d54a7e3..398bbd7 100644
--- a/vm_insnhelper.c
+++ b/vm_insnhelper.c
@@ -1213,7 +1213,7 @@ vm_setivar(VALUE obj, ID id, VALUE val, const rb_iseq_t *iseq, IVC ic, const str https://github.com/ruby/ruby/blob/trunk/vm_insnhelper.c#L1213
 	    VALUE *ptr = ROBJECT_IVPTR(obj);
 	    index = !is_attr ? ic->entry->index : vm_cc_attr_index(cc)-1;
 
-	    if (index >= ROBJECT_NUMIV(obj)) {
+            if (index >= ROBJECT_NUMIV(obj)) {
                 st_table * iv_idx_tbl = ROBJECT_IV_INDEX_TBL(obj);
                 rb_init_iv_list(obj, ROBJECT_NUMIV(obj), (uint32_t)iv_idx_tbl->num_entries, iv_idx_tbl);
                 ptr = ROBJECT_IVPTR(obj);
-- 
cgit v0.10.2


--
ML: ruby-changes@q...
Info: http://www.atdot.net/~ko1/quickml/

[前][次][番号順一覧][スレッド一覧]