include/ruby/3/core/rtypeddata.h: Use 0 instead of NULL for C++ compiler
NULL in C++ is esoteric
This commit is contained in:
parent
97f73bd0e2
commit
d2bb2e066b
@ -160,8 +160,8 @@ RTYPEDDATA_TYPE(VALUE obj)
|
|||||||
#if ! RUBY_NDEBUG
|
#if ! RUBY_NDEBUG
|
||||||
if (RB_UNLIKELY(! RTYPEDDATA_P(obj))) {
|
if (RB_UNLIKELY(! RTYPEDDATA_P(obj))) {
|
||||||
rb_unexpected_type(obj, RUBY_T_DATA);
|
rb_unexpected_type(obj, RUBY_T_DATA);
|
||||||
# if ! defined(__sun) && ! RUBY3_COMPILER_IS(Intel)
|
# if ! defined(__sun)
|
||||||
RUBY3_UNREACHABLE_RETURN(NULL);
|
RUBY3_UNREACHABLE_RETURN(0);
|
||||||
# endif
|
# endif
|
||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
|
Loading…
x
Reference in New Issue
Block a user