mirror of
				https://github.com/python/cpython.git
				synced 2025-10-31 13:41:24 +00:00 
			
		
		
		
	Clean up a couple of warnings on Win64. The downcast of the strlen size_t
return value to int is safe here because in each case it previouls checked that there will be no overflow.
This commit is contained in:
		
							parent
							
								
									6c116dd56b
								
							
						
					
					
						commit
						29b83810bd
					
				
					 1 changed files with 1 additions and 1 deletions
				
			
		|  | @ -430,7 +430,7 @@ complex_from_string(PyObject *v) | ||||||
| 					    NULL)) | 					    NULL)) | ||||||
| 			return NULL; | 			return NULL; | ||||||
| 		s = s_buffer; | 		s = s_buffer; | ||||||
| 		len = strlen(s); | 		len = (int)strlen(s); | ||||||
| 	} | 	} | ||||||
| 	else if (PyObject_AsCharBuffer(v, &s, &len)) { | 	else if (PyObject_AsCharBuffer(v, &s, &len)) { | ||||||
| 		PyErr_SetString(PyExc_TypeError, | 		PyErr_SetString(PyExc_TypeError, | ||||||
|  |  | ||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue
	
	 Trent Mick
						Trent Mick