mirror of
https://git.savannah.gnu.org/git/guile.git
synced 2025-05-20 11:40:18 +02:00
(make_uvec): Use SCM_I_SIZE_MAX instead of SIZE_MAX for added
portability.
This commit is contained in:
parent
c24d026b3b
commit
b0780bc595
1 changed files with 2 additions and 1 deletions
|
@ -326,7 +326,8 @@ uvec_fast_set_x (int type, void *base, size_t c_idx, SCM val)
|
|||
static SCM_C_INLINE SCM
|
||||
make_uvec (int type, SCM len, SCM fill)
|
||||
{
|
||||
size_t c_len = scm_to_unsigned_integer (len, 0, SIZE_MAX / uvec_sizes[type]);
|
||||
size_t c_len = scm_to_unsigned_integer (len, 0,
|
||||
SCM_I_SIZE_MAX / uvec_sizes[type]);
|
||||
SCM uvec = alloc_uvec (type, c_len);
|
||||
if (!SCM_UNBNDP (fill))
|
||||
{
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue