• Victor Stinner's avatar
    Fix compilation warnings on Windows (GH-8627) · dd4d8b4d
    Victor Stinner authored
    * Fix compilation warning in _ctypes module on Window
    
    (cherry picked from commit 20f11fe4)
    
    * Fix compilation warnings on Windows 64-bit
    
    (cherry picked from commit 725e4212)
    
    * Fix compiler warning in unicodeobject.c
    
    Explicitly case to Py_UNICODE to fix the warning:
    
    Objects\unicodeobject.c(4225): warning C4244: '=' :
    conversion from 'long' to 'Py_UNICODE', possible loss of data
    
    The downcast cannot overflow since we check that value <= 0x10ffff.
    dd4d8b4d
unicodeobject.c 270 KB