time.c: fix typo in value_insane_p

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@57170 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
nobu 2016-12-24 11:56:12 +00:00
parent e4aac80a71
commit 65a884ebad

2
time.c
View File

@ -61,7 +61,7 @@ value_insane_p(VALUE x)
LPEXCEPTION_POINTERS info;
void *failed_address = 0;
if (SPECIAL_CONST_P(x)) return 0;
if (!RBASIC_CLASS(x)) return (void *)x;
if (!&RBASIC_CLASS(x)) return (void *)x;
__try {
RB_GC_GUARD(klass) = RBASIC_CLASS(x);
}