From ed6df84473e428207cda3b81dab5b2b9cd48ef14 Mon Sep 17 00:00:00 2001 From: John Wiegley Date: Fri, 17 Feb 2012 14:30:16 -0600 Subject: Fixes for variable shadowing (24/28) --- src/scope.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/scope.h') diff --git a/src/scope.h b/src/scope.h index 71894d00..a7b3c5cb 100644 --- a/src/scope.h +++ b/src/scope.h @@ -235,8 +235,8 @@ T * search_scope(scope_t * ptr) return sought; return search_scope(scope->parent); } - else if (child_scope_t * scope = dynamic_cast(ptr)) { - return search_scope(scope->parent); + else if (child_scope_t * child_scope = dynamic_cast(ptr)) { + return search_scope(child_scope->parent); } return NULL; } -- cgit v1.2.3