mirror of
				https://github.com/python/cpython.git
				synced 2025-10-31 13:41:24 +00:00 
			
		
		
		
	Fix more ssize_t issues.
This commit is contained in:
		
							parent
							
								
									26fd9607c7
								
							
						
					
					
						commit
						6685128b97
					
				
					 6 changed files with 13 additions and 13 deletions
				
			
		|  | @ -1560,7 +1560,7 @@ PyEval_EvalFrameEx(PyFrameObject *f, int throwflag) | |||
| 			    /* XXX move into writeobject() ? */ | ||||
| 			    if (PyString_Check(v)) { | ||||
| 				char *s = PyString_AS_STRING(v); | ||||
| 				int len = PyString_GET_SIZE(v); | ||||
| 				Py_ssize_t len = PyString_GET_SIZE(v); | ||||
| 				if (len == 0 || | ||||
| 				    !isspace(Py_CHARMASK(s[len-1])) || | ||||
| 				    s[len-1] == ' ') | ||||
|  | @ -1569,7 +1569,7 @@ PyEval_EvalFrameEx(PyFrameObject *f, int throwflag) | |||
| #ifdef Py_USING_UNICODE | ||||
| 			    else if (PyUnicode_Check(v)) { | ||||
| 				Py_UNICODE *s = PyUnicode_AS_UNICODE(v); | ||||
| 				int len = PyUnicode_GET_SIZE(v); | ||||
| 				Py_ssize_t len = PyUnicode_GET_SIZE(v); | ||||
| 				if (len == 0 || | ||||
| 				    !Py_UNICODE_ISSPACE(s[len-1]) || | ||||
| 				    s[len-1] == ' ') | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue
	
	 Martin v. Löwis
						Martin v. Löwis