mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
variable.c (rb_ivar_set): remove unnecessary check
r47512 contains the proper fix git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@47517 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
6f7eda7b30
commit
02dade3b9e
1 changed files with 0 additions and 3 deletions
|
@ -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);
|
||||
|
|
Loading…
Reference in a new issue