diff options
author | Nobuyoshi Nakada <nobu@ruby-lang.org> | 2021-08-16 14:02:13 +0900 |
---|---|---|
committer | Nobuyoshi Nakada <nobu@ruby-lang.org> | 2021-08-16 15:36:37 +0900 |
commit | ee7bd7d7325d670c5bb204a63dc845465ca3f96a (patch) | |
tree | 7034d6032574c39012187729c4eb0e68395c0b23 | |
parent | 54199a3f5f77f7aacfea37d2378e82f41c6a5510 (diff) |
`SIZE_MAX` is not `size_t` on emscripten
Notes
Notes:
Merged: https://github.com/ruby/ruby/pull/4745
-rw-r--r-- | gc.c | 6 |
1 files changed, 3 insertions, 3 deletions
@@ -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); } } |