aboutsummaryrefslogtreecommitdiffstats
path: root/vm_backtrace.c
diff options
context:
space:
mode:
authorS.H <gamelinks007@gmail.com>2021-10-03 22:34:45 +0900
committerGitHub <noreply@github.com>2021-10-03 22:34:45 +0900
commitdc9112cf10e63b5272e9469d080d5d1ced30276e (patch)
tree2970b172b25b303dd839fced592564a77eedeab1 /vm_backtrace.c
parentfb03598666ddbb9f8b35eb4f599e75654ca7ca06 (diff)
downloadruby-dc9112cf10e63b5272e9469d080d5d1ced30276e.tar.gz
Using NIL_P macro instead of `== Qnil`
Diffstat (limited to 'vm_backtrace.c')
-rw-r--r--vm_backtrace.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/vm_backtrace.c b/vm_backtrace.c
index fc9f701d09..8294d218a4 100644
--- a/vm_backtrace.c
+++ b/vm_backtrace.c
@@ -1495,7 +1495,7 @@ rb_profile_frames(int start, int limit, VALUE *buff, int *lines)
static const rb_iseq_t *
frame2iseq(VALUE frame)
{
- if (frame == Qnil) return NULL;
+ if (NIL_P(frame)) return NULL;
if (RB_TYPE_P(frame, T_IMEMO)) {
switch (imemo_type(frame)) {
@@ -1528,7 +1528,7 @@ rb_profile_frame_path(VALUE frame)
static const rb_callable_method_entry_t *
cframe(VALUE frame)
{
- if (frame == Qnil) return NULL;
+ if (NIL_P(frame)) return NULL;
if (RB_TYPE_P(frame, T_IMEMO)) {
switch (imemo_type(frame)) {
@@ -1589,7 +1589,7 @@ rb_profile_frame_first_lineno(VALUE frame)
static VALUE
frame2klass(VALUE frame)
{
- if (frame == Qnil) return Qnil;
+ if (NIL_P(frame)) return Qnil;
if (RB_TYPE_P(frame, T_IMEMO)) {
const rb_callable_method_entry_t *cme = (rb_callable_method_entry_t *)frame;