diff options
Diffstat (limited to 'c_lexer/src/main.cpp')
-rw-r--r-- | c_lexer/src/main.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/c_lexer/src/main.cpp b/c_lexer/src/main.cpp index 8b20098..1e45bbd 100644 --- a/c_lexer/src/main.cpp +++ b/c_lexer/src/main.cpp @@ -65,7 +65,7 @@ int main() { printf("%s,\n", toJson(classType, text, streamLine, sourceCol, sourceLine, fileName).c_str()); - spaceCount += yyleng; + spaceCount += charLength; } printf("{}\n]\n"); |