mirror of
				https://github.com/python/cpython.git
				synced 2025-10-31 13:41:24 +00:00 
			
		
		
		
	Issue #9526: Remove outdated casts to int that were preventing the array module from working correctly with arrays > 2GB.
This commit is contained in:
		
							parent
							
								
									373e78c6f5
								
							
						
					
					
						commit
						346f0af4f6
					
				
					 1 changed files with 2 additions and 2 deletions
				
			
		|  | @ -800,7 +800,7 @@ array_iter_extend(arrayobject *self, PyObject *bb) | ||||||
|         return -1; |         return -1; | ||||||
| 
 | 
 | ||||||
|     while ((v = PyIter_Next(it)) != NULL) { |     while ((v = PyIter_Next(it)) != NULL) { | ||||||
|         if (ins1(self, (int) Py_SIZE(self), v) != 0) { |         if (ins1(self, Py_SIZE(self), v) != 0) { | ||||||
|             Py_DECREF(v); |             Py_DECREF(v); | ||||||
|             Py_DECREF(it); |             Py_DECREF(it); | ||||||
|             return -1; |             return -1; | ||||||
|  | @ -1075,7 +1075,7 @@ the buffer length in bytes."); | ||||||
| static PyObject * | static PyObject * | ||||||
| array_append(arrayobject *self, PyObject *v) | array_append(arrayobject *self, PyObject *v) | ||||||
| { | { | ||||||
|     return ins(self, (int) Py_SIZE(self), v); |     return ins(self, Py_SIZE(self), v); | ||||||
| } | } | ||||||
| 
 | 
 | ||||||
| PyDoc_STRVAR(append_doc, | PyDoc_STRVAR(append_doc, | ||||||
|  |  | ||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue
	
	 Mark Dickinson
						Mark Dickinson