ruby-changes:67171
From: Nobuyoshi <ko1@a...>
Date: Mon, 16 Aug 2021 18:32:47 +0900 (JST)
Subject: [ruby-changes:67171] ee7bd7d732 (master): `SIZE_MAX` is not `size_t` on emscripten
https://git.ruby-lang.org/ruby.git/commit/?id=ee7bd7d732 From ee7bd7d7325d670c5bb204a63dc845465ca3f96a Mon Sep 17 00:00:00 2001 From: Nobuyoshi Nakada <nobu@r...> 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(-) diff --git a/gc.c b/gc.c index d37f736..2b14adb 100644 --- a/gc.c +++ b/gc.c @@ -193,7 +193,7 @@ size_mul_or_raise(size_t x, size_t y, VALUE exc) https://github.com/ruby/ruby/blob/trunk/gc.c#L193 "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) https://github.com/ruby/ruby/blob/trunk/gc.c#L220 " * %"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) https://github.com/ruby/ruby/blob/trunk/gc.c#L248 " + %"PRIdSIZE " * %"PRIdSIZE " > %"PRIdSIZE, - x, y, z, w, SIZE_MAX); + x, y, z, w, (size_t)SIZE_MAX); } } -- cgit v1.1 -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/