From 2ffe12d0527ebaa57c95ca28f2bae5b99d1b5b47 Mon Sep 17 00:00:00 2001 From: Jose Antonio Ortega Ruiz Date: Mon, 2 Jun 2003 23:22:31 +0000 Subject: bug fix: mix_reg_() and mix_set_reg_() did not convert argument to string if it was a symbol. --- mixguile/xmixguile_cmd_dispatcher.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'mixguile') diff --git a/mixguile/xmixguile_cmd_dispatcher.c b/mixguile/xmixguile_cmd_dispatcher.c index ae383ac..70fa849 100644 --- a/mixguile/xmixguile_cmd_dispatcher.c +++ b/mixguile/xmixguile_cmd_dispatcher.c @@ -1,7 +1,7 @@ /* -*-c-*- -------------- xmixguile_cmd_dispatcher.c : * Implementation of the functions declared in xmixguile_cmd_dispatcher.h * ------------------------------------------------------------------ - * $Id: xmixguile_cmd_dispatcher.c,v 1.10 2003/04/06 13:27:42 jao Exp $ + * $Id: xmixguile_cmd_dispatcher.c,v 1.11 2003/06/02 23:22:31 jao Exp $ * ------------------------------------------------------------------ * Copyright (C) 2001, 2002, 2003 Free Software Foundation, Inc. * @@ -121,6 +121,7 @@ mix_reg_ (SCM reg) SCM_ASSERT (SCM_STRINGP (reg) || SCM_SYMBOLP (reg), reg, SCM_ARG1, "mix-reg"); SCM_DEFER_INTS; + if (SCM_SYMBOLP (reg)) reg = scm_symbol_to_string (reg); regis = gh_scm2newstr (reg, &len); switch (regis[0]) { @@ -161,6 +162,7 @@ mix_set_reg_ (SCM reg, SCM value) SCM_ASSERT (SCM_NUMBERP (value), value, SCM_ARG2, "mix-set-reg!"); SCM_DEFER_INTS; + if (SCM_SYMBOLP (reg)) reg = scm_symbol_to_string (reg); regis = gh_scm2newstr (reg, &len); val = gh_scm2long (value); switch (regis[0]) -- cgit v1.2.3