include/ruby/3/core/rtypeddata.h: Use 0 instead of NULL for C++ compiler

NULL in C++ is esoteric
This commit is contained in:
Yusuke Endoh 2020-04-09 12:50:15 +09:00
parent 97f73bd0e2
commit d2bb2e066b
1 changed files with 2 additions and 2 deletions

View File

@ -160,8 +160,8 @@ RTYPEDDATA_TYPE(VALUE obj)
#if ! RUBY_NDEBUG
if (RB_UNLIKELY(! RTYPEDDATA_P(obj))) {
rb_unexpected_type(obj, RUBY_T_DATA);
# if ! defined(__sun) && ! RUBY3_COMPILER_IS(Intel)
RUBY3_UNREACHABLE_RETURN(NULL);
# if ! defined(__sun)
RUBY3_UNREACHABLE_RETURN(0);
# endif
}
#endif