/* -*-C-*-
-$Id: lookup.c,v 9.70 2003/02/14 18:28:20 cph Exp $
+$Id: lookup.c,v 9.71 2005/09/08 02:02:04 cph Exp $
-Copyright (c) 1988-2001 Massachusetts Institute of Technology
+Copyright 1987,1988,1989,1990,1991,1992 Massachusetts Institute of Technology
+Copyright 1993,1996,1997,2000,2001,2005 Massachusetts Institute of Technology
This file is part of MIT/GNU Scheme.
SCHEME_OBJECT * target_cell;
if (! ((ENVIRONMENT_P (target_environment))
- && (ENVIRONMENT_P (source_environment))))
+ && (ENVIRONMENT_P (source_environment))
+ && (target_environment != source_environment)))
return (ERR_BAD_FRAME);
source_cell = (find_binding_cell (source_environment, source_symbol, 0));