summaryrefslogtreecommitdiff
path: root/main
diff options
context:
space:
mode:
Diffstat (limited to 'main')
-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++;
}