SIGN IN SIGN UP

ctypes: fix CThunkObject_new()

* Initialize restype and flags fields to fix a crash when Python runs on a
  read-only file system
* Use Py_ssize_t type rather than int for the "i" iterator variable
* Reorder assignements to be able to more easily check if all fields are
  initialized

Issue #11048. Initial patch written by Marcin Bachry.
V
Victor Stinner committed
e33797b686d764014aeaf80d7b4cb24863d238d9
Parent: 25539b0