tools/nxstyle.c: Check for missing space before closing comment faulty (#543)
*Addresses Issue #540, check for missing space before closing comment was faulty
This commit is contained in:
parent
295fa015bc
commit
45196cad17
@ -1471,7 +1471,7 @@ int main(int argc, char **argv, char **envp)
|
||||
{
|
||||
ERROR("Closing C comment not indented", lineno, n);
|
||||
}
|
||||
else if (!isspace((int)line[n + 1]) && line[n - 2] != '*')
|
||||
else if (!isspace((int)line[n - 2]) && line[n - 2] != '*')
|
||||
{
|
||||
ERROR("Missing space before closing C comment", lineno,
|
||||
n);
|
||||
@ -1974,7 +1974,7 @@ int main(int argc, char **argv, char **envp)
|
||||
|
||||
case '/':
|
||||
|
||||
/* C comment terminator*/
|
||||
/* C comment terminator */
|
||||
|
||||
if (line[n - 1] == '*')
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user