diff options
-rw-r--r-- | src/scope.h | 4 |
1 files changed, 2 insertions, 2 deletions
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<T>(scope->parent); } - else if (child_scope_t * scope = dynamic_cast<child_scope_t *>(ptr)) { - return search_scope<T>(scope->parent); + else if (child_scope_t * child_scope = dynamic_cast<child_scope_t *>(ptr)) { + return search_scope<T>(child_scope->parent); } return NULL; } |