diff options
Diffstat (limited to 'cpp/src/slice2js/Gen.cpp')
-rw-r--r-- | cpp/src/slice2js/Gen.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/cpp/src/slice2js/Gen.cpp b/cpp/src/slice2js/Gen.cpp index 764ac2a81fd..e685b622006 100644 --- a/cpp/src/slice2js/Gen.cpp +++ b/cpp/src/slice2js/Gen.cpp @@ -950,7 +950,7 @@ relativePath(string p1, string p2) vector<string>::const_iterator i1 = tokens1.begin(); vector<string>::const_iterator i2 = tokens2.begin(); - while(*i1 == *i2 && i1 != tokens1.end() && i2 != tokens2.end()) + while(i1 != tokens1.end() && i2 != tokens2.end() && *i1 == *i2) { i1++; i2++; |