mirror of
https://github.com/ruby/ruby.git
synced 2025-08-15 13:39:04 +02:00
Replace RBOOL macro
This commit is contained in:
parent
8f752c95d2
commit
bdd6d8746f
Notes:
git
2021-09-05 23:01:54 +09:00
15 changed files with 43 additions and 43 deletions
4
dir.c
4
dir.c
|
@ -1429,7 +1429,7 @@ with_gvl_gc_for_fd(void *ptr)
|
|||
{
|
||||
int *e = ptr;
|
||||
|
||||
return (void *)(rb_gc_for_fd(*e) ? Qtrue : Qfalse);
|
||||
return (void *)RBOOL(rb_gc_for_fd(*e));
|
||||
}
|
||||
|
||||
static int
|
||||
|
@ -1438,7 +1438,7 @@ gc_for_fd_with_gvl(int e)
|
|||
if (vm_initialized)
|
||||
return (int)(VALUE)rb_thread_call_with_gvl(with_gvl_gc_for_fd, &e);
|
||||
else
|
||||
return rb_gc_for_fd(e) ? Qtrue : Qfalse;
|
||||
return RBOOL(rb_gc_for_fd(e));
|
||||
}
|
||||
|
||||
static void *
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue