Skip to content

Commit

Permalink
Prefer NIL_P to == Qnil
Browse files Browse the repository at this point in the history
  • Loading branch information
mschwager committed Feb 13, 2024
1 parent 5e39944 commit 2fb814a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ext/cruzzy/cruzzy.c
Original file line number Diff line number Diff line change
Expand Up @@ -182,7 +182,7 @@ static void event_hook_branch(VALUE counter_hash, rb_trace_arg_t *tracearg) {

int counter_index;

if (existing_counter == Qnil) {
if (NIL_P(existing_counter)) {
rb_hash_aset(counter_hash, tuple, INT2FIX(COUNTER));
counter_index = COUNTER++;
} else {
Expand Down

0 comments on commit 2fb814a

Please sign in to comment.