diff options
author | Nobuyoshi Nakada <[email protected]> | 2023-06-23 03:15:55 +0900 |
---|---|---|
committer | GitHub <[email protected]> | 2023-06-23 03:15:55 +0900 |
commit | b934976024ef4e1694ec47158d94bce0f6d003b7 (patch) | |
tree | d6b65723139d916891d740e5107f921b4beb861c /class.c | |
parent | 52f8de4f21b147468567f422ac9551ae5c194164 (diff) |
Prefer `0` over `NULL` as function pointers
SunC warns use of `NULL`, pointer to data as function pointers.
Notes
Notes:
Merged: https://github.com/ruby/ruby/pull/7972
Merged-By: nobu <[email protected]>
Diffstat (limited to 'class.c')
-rw-r--r-- | class.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -249,7 +249,7 @@ class_alloc(VALUE flags, VALUE klass) */ RCLASS_SET_ORIGIN((VALUE)obj, (VALUE)obj); RB_OBJ_WRITE(obj, &RCLASS_REFINED_CLASS(obj), Qnil); - RCLASS_SET_ALLOCATOR((VALUE)obj, NULL); + RCLASS_SET_ALLOCATOR((VALUE)obj, 0); return (VALUE)obj; } |