diff options
Diffstat (limited to 'variable.c')
-rw-r--r-- | variable.c | 3 |
1 files changed, 0 insertions, 3 deletions
diff --git a/variable.c b/variable.c index f2c582c915..64a0556780 100644 --- a/variable.c +++ b/variable.c @@ -1175,9 +1175,6 @@ rb_ivar_set(VALUE obj, ID id, VALUE val) newsize = iv_index_tbl->num_entries; } - /* never happens in practice: */ - if (newsize > INT_MAX) rb_memerror(); - if (RBASIC(obj)->flags & ROBJECT_EMBED) { newptr = ALLOC_N(VALUE, newsize); MEMCPY(newptr, ptr, VALUE, len); |