mirror of
				https://github.com/python/cpython.git
				synced 2025-10-31 05:31:20 +00:00 
			
		
		
		
	unicode_repeat(): Change type of local to Py_ssize_t,
since that's what it should be.
This commit is contained in:
		
							parent
							
								
									286085c781
								
							
						
					
					
						commit
						1bacc641a0
					
				
					 1 changed files with 1 additions and 1 deletions
				
			
		|  | @ -5900,7 +5900,7 @@ unicode_repeat(PyUnicodeObject *str, Py_ssize_t len) | |||
|     if (str->length == 1 && len > 0) { | ||||
|         Py_UNICODE_FILL(p, str->str[0], len); | ||||
|     } else { | ||||
| 	int done = 0; /* number of characters copied this far */ | ||||
| 	Py_ssize_t done = 0; /* number of characters copied this far */ | ||||
| 	if (done < nchars) { | ||||
|             Py_UNICODE_COPY(p, str->str, str->length); | ||||
|             done = str->length; | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue
	
	 Tim Peters
						Tim Peters