mirror of
				https://github.com/python/cpython.git
				synced 2025-11-04 07:31:38 +00:00 
			
		
		
		
	Fix part of SF bug # 544248 gcc warning in unicodeobject.c
When --enable-unicode=ucs4, need to cast Py_UNICODE to a char
This commit is contained in:
		
							parent
							
								
									89841bda65
								
							
						
					
					
						commit
						a0378e1eda
					
				
					 1 changed files with 1 additions and 1 deletions
				
			
		| 
						 | 
					@ -6464,7 +6464,7 @@ PyObject *PyUnicode_Format(PyObject *format,
 | 
				
			||||||
		PyErr_Format(PyExc_ValueError,
 | 
							PyErr_Format(PyExc_ValueError,
 | 
				
			||||||
			     "unsupported format character '%c' (0x%x) "
 | 
								     "unsupported format character '%c' (0x%x) "
 | 
				
			||||||
			     "at index %i",
 | 
								     "at index %i",
 | 
				
			||||||
			     (31<=c && c<=126) ? c : '?', 
 | 
								     (31<=c && c<=126) ? (char)c : '?', 
 | 
				
			||||||
                             c,
 | 
					                             c,
 | 
				
			||||||
			     (int)(fmt -1 - PyUnicode_AS_UNICODE(uformat)));
 | 
								     (int)(fmt -1 - PyUnicode_AS_UNICODE(uformat)));
 | 
				
			||||||
		goto onError;
 | 
							goto onError;
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue