From fccf7e1cb5d2c0810e9b3a4c2cfb7355debbf819 Mon Sep 17 00:00:00 2001 From: John Wiegley Date: Sun, 8 Feb 2009 23:56:28 -0400 Subject: Fixes to the new Python/scope integration code. --- python/py_value.cc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'python/py_value.cc') diff --git a/python/py_value.cc b/python/py_value.cc index 4962f182..ef64a04c 100644 --- a/python/py_value.cc +++ b/python/py_value.cc @@ -40,10 +40,10 @@ using namespace boost::python; BOOST_PYTHON_MEMBER_FUNCTION_OVERLOADS(value_overloads, value, 0, 2) namespace { - expr_t py_value_getattr(value_t& value, const string& name) + expr_t py_value_getattr(const value_t& value, const string& name) { if (value.is_pointer()) { - if (scope_t * scope = value.as_pointer_lval()) + if (scope_t * scope = value.as_pointer()) return expr_t(scope->lookup(name), scope); } throw_(value_error, "Cannot lookup attributes in " << value.label()); -- cgit v1.2.3