Using RBOOL macro

This commit is contained in:
S.H 2021-08-02 12:06:44 +09:00 committed by GitHub
parent 3688b47671
commit 378e8cdad6
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
Notes: git 2021-08-02 12:07:13 +09:00
Merged: https://github.com/ruby/ruby/pull/4695

Merged-By: nobu <nobu@ruby-lang.org>
26 changed files with 127 additions and 257 deletions

View file

@ -662,7 +662,7 @@ rb_encdb_dummy(const char *name)
static VALUE
enc_dummy_p(VALUE enc)
{
return ENC_DUMMY_P(must_encoding(enc)) ? Qtrue : Qfalse;
return RBOOL(ENC_DUMMY_P(must_encoding(enc)));
}
/*
@ -678,7 +678,7 @@ enc_dummy_p(VALUE enc)
static VALUE
enc_ascii_compatible_p(VALUE enc)
{
return rb_enc_asciicompat(must_encoding(enc)) ? Qtrue : Qfalse;
return RBOOL(rb_enc_asciicompat(must_encoding(enc)));
}
/*