summaryrefslogtreecommitdiff
path: root/libguile/options.c
diff options
context:
space:
mode:
Diffstat (limited to 'libguile/options.c')
-rw-r--r--libguile/options.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/libguile/options.c b/libguile/options.c
index 750bd9526..ed6ab3c9c 100644
--- a/libguile/options.c
+++ b/libguile/options.c
@@ -186,7 +186,7 @@ scm_options (SCM arg, scm_option options[], int n, const char *s)
goto cont;
case SCM_OPTION_SCM:
new_mode = SCM_CDR (new_mode);
- flags[i] = SCM_CAR (new_mode);
+ flags[i] = SCM_CARW (new_mode);
goto cont;
}
#ifndef SCM_RECKLESS
@@ -198,6 +198,7 @@ scm_options (SCM arg, scm_option options[], int n, const char *s)
}
for (i = 0; i < n; ++i)
{
+ // scm_option doesn't know if its a long or an SCM
if (options[i].type == SCM_OPTION_SCM)
SCM_SETCDR (protected_objects,
scm_cons (flags[i],