mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
SIZE_MAX
is not size_t
on emscripten
This commit is contained in:
parent
54199a3f5f
commit
ee7bd7d732
Notes:
git
2021-08-16 18:32:53 +09:00
1 changed files with 3 additions and 3 deletions
6
gc.c
6
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);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue