Skip to content

Commit

Permalink
include/ruby/3/core/rtypeddata.h: Use 0 instead of NULL for C++ compiler
Browse files Browse the repository at this point in the history
NULL in C++ is esoteric
  • Loading branch information
mame committed Apr 9, 2020
1 parent 97f73bd commit d2bb2e0
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions include/ruby/3/core/rtypeddata.h
Expand Up @@ -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
Expand Down

0 comments on commit d2bb2e0

Please sign in to comment.