mirror of
https://git.savannah.gnu.org/git/guile.git
synced 2025-06-17 17:20:29 +02:00
Merge remote-tracking branch 'origin/stable-2.0'
This commit is contained in:
commit
88cff2ef1b
2 changed files with 12 additions and 6 deletions
|
@ -1116,20 +1116,18 @@ SCM_DEFINE (scm_bytevector_sint_set_x, "bytevector-sint-set!", 5, 0, 0,
|
|||
\
|
||||
SCM_VALIDATE_BYTEVECTOR (1, bv); \
|
||||
SCM_VALIDATE_SYMBOL (2, endianness); \
|
||||
c_size = scm_to_uint (size); \
|
||||
c_size = scm_to_unsigned_integer (size, 1, (size_t) -1); \
|
||||
\
|
||||
c_len = SCM_BYTEVECTOR_LENGTH (bv); \
|
||||
if (SCM_UNLIKELY (c_len == 0)) \
|
||||
if (SCM_UNLIKELY (c_len < c_size)) \
|
||||
lst = SCM_EOL; \
|
||||
else if (SCM_UNLIKELY (c_len < c_size)) \
|
||||
scm_out_of_range (FUNC_NAME, size); \
|
||||
else \
|
||||
{ \
|
||||
const char *c_bv; \
|
||||
\
|
||||
c_bv = (char *) SCM_BYTEVECTOR_CONTENTS (bv); \
|
||||
\
|
||||
lst = scm_make_list (scm_from_uint (c_len / c_size), \
|
||||
lst = scm_make_list (scm_from_size_t (c_len / c_size), \
|
||||
SCM_UNSPECIFIED); \
|
||||
for (i = 0, pair = lst; \
|
||||
i <= c_len - c_size; \
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue