Ticket #6192: 090-fix-ctypes.patch

File 090-fix-ctypes.patch, 622 bytes (added by riskable@…, 8 years ago)

Patch to fix the ctypes module on ar71xx (may also fix it on other platforms).

  • Lib/ctypes/__init__.py

    a b  
    538538    elif sizeof(kind) == 4: c_uint32 = kind 
    539539    elif sizeof(kind) == 8: c_uint64 = kind 
    540540del(kind) 
    541  
    542 # XXX for whatever reasons, creating the first instance of a callback 
    543 # function is needed for the unittests on Win64 to succeed.  This MAY 
    544 # be a compiler bug, since the problem occurs only when _ctypes is 
    545 # compiled with the MS SDK compiler.  Or an uninitialized variable? 
    546 CFUNCTYPE(c_int)(lambda: None)