diff options
author | Rémi Verschelde <rverschelde@gmail.com> | 2017-02-28 23:03:10 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-02-28 23:03:10 +0100 |
commit | a1cbe8e22bec516b138436d06282046466e89c79 (patch) | |
tree | 24c8d7757a3f1d9e3543a8eff1363f0f7943cbc6 /main/tests/test_math.cpp | |
parent | c5df3d4d8d3d6ee74b0dad5eeb45f318c8b205a9 (diff) | |
parent | f50488a36188d5975bfa8554687a1acdd394d6a9 (diff) |
Merge pull request #7878 from RebelliousX/else
Bunch of missing `else` statements and general logic
Diffstat (limited to 'main/tests/test_math.cpp')
-rw-r--r-- | main/tests/test_math.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/main/tests/test_math.cpp b/main/tests/test_math.cpp index 89513b81d9..bbbb903e5f 100644 --- a/main/tests/test_math.cpp +++ b/main/tests/test_math.cpp @@ -144,11 +144,11 @@ class GetClassAndNamespace { error_str="Unterminated comment"; error=true; return TK_ERROR; - } if (code[idx]=='*' &&code[idx+1]=='/') { + } else if (code[idx]=='*' &&code[idx+1]=='/') { idx+=2; break; - } if (code[idx]=='\n') { + } else if (code[idx]=='\n') { line++; } |