diff options
author | Nobuyoshi Nakada <nobu@ruby-lang.org> | 2021-09-23 16:40:04 +0900 |
---|---|---|
committer | Nobuyoshi Nakada <nobu@ruby-lang.org> | 2021-09-23 16:55:35 +0900 |
commit | 8b48b57fd89ad1bbb1d3b4b8445a65ab2d0b272b (patch) | |
tree | 9a2916bbca236c7876e36572ec53cb4db13d7377 /enumerator.c | |
parent | b42fe5937ab2a605a198ffb866db5ccda541568d (diff) |
Comparing nonnull argument to NULL is useless
Diffstat (limited to 'enumerator.c')
-rw-r--r-- | enumerator.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/enumerator.c b/enumerator.c index 0dc804a3cf..f359ab7bad 100644 --- a/enumerator.c +++ b/enumerator.c @@ -3446,9 +3446,11 @@ rb_arithmetic_sequence_extract(VALUE obj, rb_arithmetic_sequence_components_t *c VALUE rb_arithmetic_sequence_beg_len_step(VALUE obj, long *begp, long *lenp, long *stepp, long len, int err) { +#if !RBIMPL_HAS_ATTRIBUTE(nonnull) RUBY_ASSERT(begp != NULL); RUBY_ASSERT(lenp != NULL); RUBY_ASSERT(stepp != NULL); +#endif rb_arithmetic_sequence_components_t aseq; if (!rb_arithmetic_sequence_extract(obj, &aseq)) { |