diff options
author | S-H-GAMELINKS <gamelinks007@gmail.com> | 2021-08-31 20:30:35 +0900 |
---|---|---|
committer | Nobuyoshi Nakada <nobu@ruby-lang.org> | 2021-09-05 23:01:27 +0900 |
commit | bdd6d8746f0a07b2c0cc3a6b387bf594569c0bb7 (patch) | |
tree | f11d32da65e227763d598d765765a76ddace1a0a /transcode.c | |
parent | 8f752c95d20134bcc0b5394f1cea723a40f1ac8c (diff) | |
download | ruby-bdd6d8746f0a07b2c0cc3a6b387bf594569c0bb7.tar.gz |
Replace RBOOL macro
Diffstat (limited to 'transcode.c')
-rw-r--r-- | transcode.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/transcode.c b/transcode.c index e4ff32653e..c61698eca1 100644 --- a/transcode.c +++ b/transcode.c @@ -2079,7 +2079,7 @@ make_econv_exception(rb_econv_t *ec) exc = rb_exc_new3(rb_eInvalidByteSequenceError, mesg); rb_ivar_set(exc, id_error_bytes, bytes); rb_ivar_set(exc, id_readagain_bytes, bytes2); - rb_ivar_set(exc, id_incomplete_input, ec->last_error.result == econv_incomplete_input ? Qtrue : Qfalse); + rb_ivar_set(exc, id_incomplete_input, RBOOL(ec->last_error.result == econv_incomplete_input)); goto set_encs; } if (ec->last_error.result == econv_undefined_conversion) { |