summaryrefslogtreecommitdiffstats
path: root/tools/aidl/Type.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'tools/aidl/Type.cpp')
-rw-r--r--tools/aidl/Type.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/tools/aidl/Type.cpp b/tools/aidl/Type.cpp
index c637aee..d572af6 100644
--- a/tools/aidl/Type.cpp
+++ b/tools/aidl/Type.cpp
@@ -1348,7 +1348,7 @@ Namespace::Search(const string& name)
// would be the place to do it, but I don't think the complexity in
// scoping rules is worth it.
int N = m_types.size();
- for (int i=N-1; i>=0; i--) {
+ for (int i=0; i<N; i++) {
if (m_types[i]->Name() == name) {
return m_types[i];
}