Ticket #2245: cdefer-2245.patch

File cdefer-2245.patch, 504 bytes (added by Peaker, 7 years ago)

Use int instead of Py_ssize_t as a PyList index.

  • twisted/internet/cdefer/cdefer.c

     
    5050     * popping every item. It has to be per-deferred, because 
    5151     * runCallbacks can be called reentrantly, and must not repeat the 
    5252     * previously-called callbacks. */ 
    53     Py_ssize_t callback_index; 
     53    int callback_index; 
    5454} cdefer_Deferred; 
    5555 
    5656/* Prototypes */