summaryrefslogtreecommitdiff
path: root/main/tests/test_math.cpp
diff options
context:
space:
mode:
authorRémi Verschelde <rverschelde@gmail.com>2017-02-28 23:03:10 +0100
committerGitHub <noreply@github.com>2017-02-28 23:03:10 +0100
commita1cbe8e22bec516b138436d06282046466e89c79 (patch)
tree24c8d7757a3f1d9e3543a8eff1363f0f7943cbc6 /main/tests/test_math.cpp
parentc5df3d4d8d3d6ee74b0dad5eeb45f318c8b205a9 (diff)
parentf50488a36188d5975bfa8554687a1acdd394d6a9 (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.cpp4
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++;
}