mirror of
https://git.savannah.gnu.org/git/guile.git
synced 2025-05-20 03:30:27 +02:00
signedness fix fix fix
* libguile/inline.h: Fix signedness fix fix.
This commit is contained in:
parent
1ab3976ef7
commit
3245c0fbef
1 changed files with 1 additions and 1 deletions
|
@ -256,7 +256,7 @@ SCM_C_EXTERN_INLINE
|
|||
void
|
||||
scm_array_handle_set (scm_t_array_handle *h, ssize_t p, SCM v)
|
||||
{
|
||||
if (SCM_UNLIKELY (p < 0 && -p > (ssize_t) h->base))
|
||||
if (SCM_UNLIKELY (p < 0 && ((size_t)-p) > h->base))
|
||||
/* catch overflow */
|
||||
scm_out_of_range (NULL, scm_from_ssize_t (p));
|
||||
/* perhaps should catch overflow here too */
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue