summaryrefslogtreecommitdiff
path: root/gc.c
diff options
context:
space:
mode:
Diffstat (limited to 'gc.c')
-rw-r--r--gc.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/gc.c b/gc.c
index d37f7360fc..2b14adb39d 100644
--- a/gc.c
+++ b/gc.c
@@ -193,7 +193,7 @@ size_mul_or_raise(size_t x, size_t y, VALUE exc)
"integer overflow: %"PRIuSIZE
" * %"PRIuSIZE
" > %"PRIuSIZE,
- x, y, SIZE_MAX);
+ x, y, (size_t)SIZE_MAX);
}
}
@@ -220,7 +220,7 @@ size_mul_add_or_raise(size_t x, size_t y, size_t z, VALUE exc)
" * %"PRIuSIZE
" + %"PRIuSIZE
" > %"PRIuSIZE,
- x, y, z, SIZE_MAX);
+ x, y, z, (size_t)SIZE_MAX);
}
}
@@ -248,7 +248,7 @@ size_mul_add_mul_or_raise(size_t x, size_t y, size_t z, size_t w, VALUE exc)
" + %"PRIdSIZE
" * %"PRIdSIZE
" > %"PRIdSIZE,
- x, y, z, w, SIZE_MAX);
+ x, y, z, w, (size_t)SIZE_MAX);
}
}