summaryrefslogtreecommitdiffhomepage
path: root/src/gc.c
diff options
context:
space:
mode:
authorYukihiro "Matz" Matsumoto <[email protected]>2021-08-03 12:56:34 +0900
committerYukihiro "Matz" Matsumoto <[email protected]>2021-08-03 13:00:10 +0900
commit23e7cb41e5b4b023edfa2a018545b8f09069533c (patch)
tree85c4ea2ebc36e81abd8b07e007da616f11cb8258 /src/gc.c
parent019b006ee52fd0bd7786b0f42646e21e5f369e40 (diff)
downloadmruby-23e7cb41e5b4b023edfa2a018545b8f09069533c.tar.gz
mruby-23e7cb41e5b4b023edfa2a018545b8f09069533c.zip
Replace `fixnum` references with `int`.
The `Fixnum` class is no longer provided by `mruby`.
Diffstat (limited to 'src/gc.c')
-rw-r--r--src/gc.c12
1 files changed, 6 insertions, 6 deletions
diff --git a/src/gc.c b/src/gc.c
index a40bd8545..759a79ca2 100644
--- a/src/gc.c
+++ b/src/gc.c
@@ -1471,7 +1471,7 @@ gc_disable(mrb_state *mrb, mrb_value obj)
/*
* call-seq:
- * GC.interval_ratio -> fixnum
+ * GC.interval_ratio -> int
*
* Returns ratio of GC interval. Default value is 200(%).
*
@@ -1480,12 +1480,12 @@ gc_disable(mrb_state *mrb, mrb_value obj)
static mrb_value
gc_interval_ratio_get(mrb_state *mrb, mrb_value obj)
{
- return mrb_fixnum_value(mrb->gc.interval_ratio);
+ return mrb_int_value(mrb, mrb->gc.interval_ratio);
}
/*
* call-seq:
- * GC.interval_ratio = fixnum -> nil
+ * GC.interval_ratio = int -> nil
*
* Updates ratio of GC interval. Default value is 200(%).
* GC start as soon as after end all step of GC if you set 100(%).
@@ -1504,7 +1504,7 @@ gc_interval_ratio_set(mrb_state *mrb, mrb_value obj)
/*
* call-seq:
- * GC.step_ratio -> fixnum
+ * GC.step_ratio -> int
*
* Returns step span ratio of Incremental GC. Default value is 200(%).
*
@@ -1513,12 +1513,12 @@ gc_interval_ratio_set(mrb_state *mrb, mrb_value obj)
static mrb_value
gc_step_ratio_get(mrb_state *mrb, mrb_value obj)
{
- return mrb_fixnum_value(mrb->gc.step_ratio);
+ return mrb_int_value(mrb, mrb->gc.step_ratio);
}
/*
* call-seq:
- * GC.step_ratio = fixnum -> nil
+ * GC.step_ratio = int -> nil
*
* Updates step span ratio of Incremental GC. Default value is 200(%).
* 1 step of incrementalGC becomes long if a rate is big.