mirror of
https://git.savannah.gnu.org/git/guile.git
synced 2025-04-30 20:00:19 +02:00
Adjust formatting.
This commit is contained in:
parent
6d921cd6cc
commit
cc5ca0281d
1 changed files with 2 additions and 1 deletions
|
@ -288,7 +288,8 @@ scm_string_set_x (str, k, chr)
|
|||
SCM_ASSERT (SCM_ICHRP (chr), chr, SCM_ARG3, s_string_set_x);
|
||||
if (! SCM_RWSTRINGP (str))
|
||||
scm_misc_error (s_string_set_x, "argument is a read-only string", str);
|
||||
SCM_ASSERT (SCM_INUM (k) < SCM_LENGTH (str) && SCM_INUM (k) >= 0,
|
||||
SCM_ASSERT ((SCM_INUM (k) >= 0
|
||||
&& ((unsigned) SCM_INUM (k)) < SCM_LENGTH (str)),
|
||||
k, SCM_OUTOFRANGE, s_string_set_x);
|
||||
SCM_UCHARS (str)[SCM_INUM (k)] = SCM_ICHR (chr);
|
||||
return SCM_UNSPECIFIED;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue