summaryrefslogtreecommitdiff
path: root/vm.c
diff options
context:
space:
mode:
authorNobuyoshi Nakada <nobu@ruby-lang.org>2020-12-02 15:50:01 +0900
committerNobuyoshi Nakada <nobu@ruby-lang.org>2020-12-07 18:38:59 +0900
commit7817a438eb1803e7b3358f43bd1f38479badfbdc (patch)
tree4152be541fa86116703425c7b9434527cdefae08 /vm.c
parent20d53dad47064b28721d81ad0a98a25dcb0731c6 (diff)
Removed deprecated Time#succ
Notes
Notes: Merged: https://github.com/ruby/ruby/pull/3841
Diffstat (limited to 'vm.c')
-rw-r--r--vm.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/vm.c b/vm.c
index 1e8056a..6573925 100644
--- a/vm.c
+++ b/vm.c
@@ -1810,7 +1810,9 @@ vm_redefinition_check_flag(VALUE klass)
if (klass == rb_cArray) return ARRAY_REDEFINED_OP_FLAG;
if (klass == rb_cHash) return HASH_REDEFINED_OP_FLAG;
if (klass == rb_cSymbol) return SYMBOL_REDEFINED_OP_FLAG;
+#if 0
if (klass == rb_cTime) return TIME_REDEFINED_OP_FLAG;
+#endif
if (klass == rb_cRegexp) return REGEXP_REDEFINED_OP_FLAG;
if (klass == rb_cNilClass) return NIL_REDEFINED_OP_FLAG;
if (klass == rb_cTrueClass) return TRUE_REDEFINED_OP_FLAG;
@@ -1920,7 +1922,7 @@ vm_init_redefined_flag(void)
OP(Length, LENGTH), (C(Array), C(String), C(Hash));
OP(Size, SIZE), (C(Array), C(String), C(Hash));
OP(EmptyP, EMPTY_P), (C(Array), C(String), C(Hash));
- OP(Succ, SUCC), (C(Integer), C(String), C(Time));
+ OP(Succ, SUCC), (C(Integer), C(String));
OP(EqTilde, MATCH), (C(Regexp), C(String));
OP(Freeze, FREEZE), (C(String));
OP(UMinus, UMINUS), (C(String));