There was an error while loading. Please reload this page.
1 parent dee8cf3 commit 7e5d82cCopy full SHA for 7e5d82c
1 file changed
Parser/lexer/lexer.c
@@ -269,7 +269,7 @@ _PyLexer_get_normal(struct tok_state *tok, ftstring_state *current, struct token
269
270
tok->start = tok->cur;
271
tok->start_loc = (_PyTok_Loc){
272
- tok->lineno, tok->cur >= 0 ? _PyLexer_ByteColumn(tok) : -1};
+ tok->lineno, _PyLexer_ByteColumn(tok)};
273
274
/* Return pending indents/dedents */
275
if (tok->pendin != 0) {
@@ -303,9 +303,9 @@ _PyLexer_get_normal(struct tok_state *tok, ftstring_state *current, struct token
303
} while (c == ' ' || c == '\t' || c == '\014');
304
305
/* Set start of current token */
306
- tok->start = tok->cur < 0 ? -1 : tok->cur - 1;
+ tok->start = tok->cur - 1;
307
308
- tok->lineno, tok->cur >= 0 ? _PyLexer_ByteColumn(tok) - 1 : -1};
+ tok->lineno, _PyLexer_ByteColumn(tok) - 1};
309
310
/* Skip comment, unless it's a type comment */
311
if (c == '#') {
0 commit comments