mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
Replace to RBOOL macro
This commit is contained in:
parent
3515867381
commit
804a714971
Notes:
git
2022-01-17 13:50:01 +09:00
2 changed files with 2 additions and 10 deletions
|
@ -6723,12 +6723,7 @@ p_sys_setresgid(VALUE obj, VALUE rid, VALUE eid, VALUE sid)
|
|||
static VALUE
|
||||
p_sys_issetugid(VALUE obj)
|
||||
{
|
||||
if (issetugid()) {
|
||||
return Qtrue;
|
||||
}
|
||||
else {
|
||||
return Qfalse;
|
||||
}
|
||||
return RBOOL(issetugid());
|
||||
}
|
||||
#else
|
||||
#define p_sys_issetugid rb_f_notimplement
|
||||
|
|
5
re.c
5
re.c
|
@ -3297,10 +3297,7 @@ rb_reg_eqq(VALUE re, VALUE str)
|
|||
return Qfalse;
|
||||
}
|
||||
start = rb_reg_search(re, str, 0, 0);
|
||||
if (start < 0) {
|
||||
return Qfalse;
|
||||
}
|
||||
return Qtrue;
|
||||
return RBOOL(start >= 0);
|
||||
}
|
||||
|
||||
|
||||
|
|
Loading…
Reference in a new issue