mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
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
1 changed files with 2 additions and 2 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Reference in a new issue