Various fixes detected using PVS-Studio static analyzer.
- Add FIXME tags comments to some unfixed potential bugs - Remove some checks (always false: unsigned never < 0) - Fix some if statements based on reviews. - Bunch of missing `else` statements
This commit is contained in:
committed by
REBELLIOUSX\Rebel_X
parent
0f8c6dd382
commit
f50488a361
@@ -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++;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user