summaryrefslogtreecommitdiff
path: root/gc.c
diff options
context:
space:
mode:
authorNobuyoshi Nakada <nobu@ruby-lang.org>2021-08-16 14:02:13 +0900
committerNobuyoshi Nakada <nobu@ruby-lang.org>2021-08-16 15:36:37 +0900
commitee7bd7d7325d670c5bb204a63dc845465ca3f96a (patch)
tree7034d6032574c39012187729c4eb0e68395c0b23 /gc.c
parent54199a3f5f77f7aacfea37d2378e82f41c6a5510 (diff)
`SIZE_MAX` is not `size_t` on emscripten
Notes
Notes: Merged: https://github.com/ruby/ruby/pull/4745
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);
}
}