summaryrefslogtreecommitdiff
path: root/variable.c
diff options
context:
space:
mode:
authornormal <normal@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2014-09-10 09:00:06 +0000
committernormal <normal@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2014-09-10 09:00:06 +0000
commit02dade3b9e0134190c6b0db1361d140fbeeb44f3 (patch)
tree69b76e3ccd1c8c249035ba17681d1ddb6641f1ac /variable.c
parent6f7eda7b304388e640ec3164562ac5515364f84e (diff)
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
Diffstat (limited to 'variable.c')
-rw-r--r--variable.c3
1 files changed, 0 insertions, 3 deletions
diff --git a/variable.c b/variable.c
index f2c582c..64a0556 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);