summaryrefslogtreecommitdiff
path: root/libguile/gh_data.c
diff options
context:
space:
mode:
Diffstat (limited to 'libguile/gh_data.c')
-rw-r--r--libguile/gh_data.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/libguile/gh_data.c b/libguile/gh_data.c
index 0ee8896a9..368b223f5 100644
--- a/libguile/gh_data.c
+++ b/libguile/gh_data.c
@@ -708,14 +708,14 @@ SCM
gh_module_lookup (SCM module, const char *sname)
#define FUNC_NAME "gh_module_lookup"
{
- SCM sym, cell;
+ SCM sym, var;
SCM_VALIDATE_MODULE (SCM_ARG1, module);
sym = gh_symbol2scm (sname);
- cell = scm_sym2vcell (sym, scm_module_lookup_closure (module), SCM_BOOL_F);
- if (cell != SCM_BOOL_F)
- return SCM_CDR (cell);
+ var = scm_sym2var (sym, scm_module_lookup_closure (module), SCM_BOOL_F);
+ if (var != SCM_BOOL_F)
+ return SCM_VARIABLE_REF (var);
else
return SCM_UNDEFINED;
}