mirror of
https://git.savannah.gnu.org/git/guile.git
synced 2025-05-01 12:20:26 +02:00
* ports.c (scm_unread_string): Bugfixes: Check for SCM_STRINGP,
not SCM_ROSTRINGP; use SCM_ROUCHARS instead of SCM_UCHARS.
This commit is contained in:
parent
44e0a162a2
commit
d1c90db5d6
1 changed files with 2 additions and 2 deletions
|
@ -708,7 +708,7 @@ scm_unread_string (str, port)
|
|||
SCM str;
|
||||
SCM port;
|
||||
{
|
||||
SCM_ASSERT (SCM_NIMP (str) && SCM_ROSTRINGP (str),
|
||||
SCM_ASSERT (SCM_NIMP (str) && SCM_STRINGP (str),
|
||||
str, SCM_ARG1, s_unread_string);
|
||||
|
||||
if (SCM_UNBNDP (port))
|
||||
|
@ -717,7 +717,7 @@ scm_unread_string (str, port)
|
|||
SCM_ASSERT (SCM_NIMP (port) && SCM_OPINPORTP (port),
|
||||
port, SCM_ARG2, s_unread_string);
|
||||
|
||||
scm_ungets (SCM_UCHARS (str), SCM_LENGTH (str), port);
|
||||
scm_ungets (SCM_ROUCHARS (str), SCM_LENGTH (str), port);
|
||||
|
||||
return str;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue