summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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);