summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorYusuke Endoh <mame@ruby-lang.org>2020-04-09 12:50:15 +0900
committerYusuke Endoh <mame@ruby-lang.org>2020-04-09 12:50:53 +0900
commitd2bb2e066b5a914283dd3ea473fc1762183af013 (patch)
tree1f50ec4bb8d02c86413f86325139bddd2609066a /include
parent97f73bd0e2ace86183956f042f93a0eadd81e515 (diff)
include/ruby/3/core/rtypeddata.h: Use 0 instead of NULL for C++ compiler
NULL in C++ is esoteric
Diffstat (limited to 'include')
-rw-r--r--include/ruby/3/core/rtypeddata.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/include/ruby/3/core/rtypeddata.h b/include/ruby/3/core/rtypeddata.h
index 21b08570fe..9ba1f363c6 100644
--- a/include/ruby/3/core/rtypeddata.h
+++ b/include/ruby/3/core/rtypeddata.h
@@ -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