I would just change this and the previous if to:

```c++
while (FirstCommentChar > 0 && (line[FirstCommentChar - 1] == ' ' || line[FirstCommentChar - 1] == '\t'))
```

Or, probably fine and simpler:
```c++
while (FirstCommentChar > 0 && line[FirstCommentChar - 1] <= ' ')
```

-[Unknown]