From ee7bd7d7325d670c5bb204a63dc845465ca3f96a Mon Sep 17 00:00:00 2001 From: Nobuyoshi Nakada Date: Mon, 16 Aug 2021 14:02:13 +0900 Subject: `SIZE_MAX` is not `size_t` on emscripten --- gc.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'gc.c') 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); } } -- cgit v1.2.3