diff options
author | Greg J. Badros <gjb@cs.washington.edu> | 2000-03-09 21:48:25 +0000 |
---|---|---|
committer | Greg J. Badros <gjb@cs.washington.edu> | 2000-03-09 21:48:25 +0000 |
commit | 41b0806d3ed1c6e11fcae8e09b161f320137a73b (patch) | |
tree | 0f3438113efe9db300637708cfb679657c3ce836 /libguile/options.c | |
parent | 7ac030d6de0e8fad668851f5c42f9869cc2b1b3f (diff) | |
download | guile-41b0806d3ed1c6e11fcae8e09b161f320137a73b.tar.gz |
* vectors.h (SCM_VELTS_AS_STACKITEMS): Added this macro to help in
eliminating some warnings.
* unif.c, strports.c, print.c, options.c: Fix some warnings on
mis-use of SCM/long
* gc.c, gc.h: Added scm_return_first_int(), and added comment re:
what the scm_return_first* functions do.
Diffstat (limited to 'libguile/options.c')
-rw-r--r-- | libguile/options.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/libguile/options.c b/libguile/options.c index ed6ab3c9c..f051c1db9 100644 --- a/libguile/options.c +++ b/libguile/options.c @@ -201,8 +201,8 @@ scm_options (SCM arg, scm_option options[], int n, const char *s) // 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], - scm_delq1_x (options[i].val, + scm_cons (SCM_ASSCM(flags[i]), + scm_delq1_x (SCM_ASSCM(options[i].val), SCM_CDR (protected_objects)))); options[i].val = flags[i]; } @@ -224,7 +224,7 @@ scm_init_opts (SCM (*func) (SCM), scm_option options[], int n) (options[i].doc)); if (options[i].type == SCM_OPTION_SCM) SCM_SETCDR (protected_objects, - scm_cons (options[i].val, SCM_CDR (protected_objects))); + scm_cons (SCM_ASSCM(options[i].val), SCM_CDR (protected_objects))); } func (SCM_UNDEFINED); } |