summaryrefslogtreecommitdiffhomepage
path: root/src/gc.c
diff options
context:
space:
mode:
authorYukihiro "Matz" Matsumoto <[email protected]>2020-09-03 20:57:41 +0900
committerYukihiro "Matz" Matsumoto <[email protected]>2020-10-12 18:20:16 +0900
commitfc8885f2f4d0bb8e339c98d6e01e50279756aa5a (patch)
treeb7dc52a7eeb82620aa7e518ea391a808e5d43571 /src/gc.c
parentfe1ad37bfb90588a88dcfb009874b140036cbdb1 (diff)
downloadmruby-fc8885f2f4d0bb8e339c98d6e01e50279756aa5a.tar.gz
mruby-fc8885f2f4d0bb8e339c98d6e01e50279756aa5a.zip
Use `mrb_int` extensively instead of `int`.
The mixture causes warnings on 64 bit Windows (VC).
Diffstat (limited to 'src/gc.c')
-rw-r--r--src/gc.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/gc.c b/src/gc.c
index 3fba68668..0f2c3bfab 100644
--- a/src/gc.c
+++ b/src/gc.c
@@ -591,11 +591,11 @@ add_gray_list(mrb_state *mrb, mrb_gc *gc, struct RBasic *obj)
gc->gray_list = obj;
}
-static int
+static mrb_int
ci_nregs(mrb_callinfo *ci)
{
const struct RProc *p = ci->proc;
- int n = 0;
+ mrb_int n = 0;
if (!p) {
if (ci->argc < 0) return 3;