mirror of
				https://github.com/python/cpython.git
				synced 2025-10-31 13:41:24 +00:00 
			
		
		
		
	gh-105390: Add explicit type cast (#105466)
This commit is contained in:
		
							parent
							
								
									5394bf92aa
								
							
						
					
					
						commit
						264a0110ff
					
				
					 1 changed files with 2 additions and 1 deletions
				
			
		|  | @ -85,7 +85,8 @@ _tokenizer_error(struct tok_state *tok) | |||
|             break; | ||||
|         case E_EOF: | ||||
|             PyErr_SetString(PyExc_SyntaxError, "unexpected EOF in multi-line statement"); | ||||
|             PyErr_SyntaxLocationObject(tok->filename, tok->lineno, tok->inp - tok->buf < 0 ? 0 : tok->inp - tok->buf); | ||||
|             PyErr_SyntaxLocationObject(tok->filename, tok->lineno, | ||||
|                                        tok->inp - tok->buf < 0 ? 0 : (int)(tok->inp - tok->buf)); | ||||
|             return -1; | ||||
|         case E_DEDENT: | ||||
|             msg = "unindent does not match any outer indentation level"; | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue
	
	 Kirill Podoprigora
						Kirill Podoprigora