Tentative fix for CTYPES_FROM_PTR bug.