summaryrefslogtreecommitdiff
path: root/transcode.c
diff options
context:
space:
mode:
authorS.H <[email protected]>2021-10-03 22:34:45 +0900
committer<[email protected]>2021-10-03 22:34:45 +0900
commitdc9112cf10e63b5272e9469d080d5d1ced30276e ()
tree2970b172b25b303dd839fced592564a77eedeab1 /transcode.c
parentfb03598666ddbb9f8b35eb4f599e75654ca7ca06 (diff)
Using NIL_P macro instead of `== Qnil`
Notes: Merged: https://.com/ruby/ruby/pull/4925 Merged-By: nobu <[email protected]>
-rw-r--r--transcode.c4
1 files changed, 2 insertions, 2 deletions
@@ -2102,7 +2102,7 @@ make_econv_exception(rb_econv_t *ec)
dumped = rb_sprintf("U+%04X", cc);
}
}
- if (dumped == Qnil)
dumped = rb_str_dump(bytes);
if (strcmp(ec->last_error.source_encoding,
ec->source_encoding_name) == 0 &&
@@ -3121,7 +3121,7 @@ search_convpath_i(const char *sname, const char *dname, int depth, void *arg)
VALUE *ary_p = arg;
VALUE v;
- if (*ary_p == Qnil) {
*ary_p = rb_ary_new();
}