Ticket #67: 64-bit.patch

File 64-bit.patch, 701 bytes (added by anonymous, 6 years ago)

fix compile warnings on 64-bit machine

  • ext/_syckmodule.c

    diff --git a/ext/_syckmodule.c b/ext/_syckmodule.c
    index 00904a2..6ed7b15 100644
    a b PySyckEmitter_node_handler(SyckEmitter *emitter, st_data_t id) 
    15991599    PyObject *key, *value, *item, *pair; 
    16001600    int j, k, l; 
    16011601    char *str; 
    1602     int len; 
    1603     int dict_pos; 
     1602    Py_ssize_t len; 
     1603    Py_ssize_t dict_pos; 
    16041604     
    16051605    if (self->halt) return; 
    16061606 
    PySyckEmitter_mark(PySyckEmitterObject *self, PyObject *root_node) 
    18401840    PySyckNodeObject *node; 
    18411841    PyObject *item, *key, *value, *pair; 
    18421842    PyObject *index; 
    1843     int dict_pos; 
     1843    Py_ssize_t dict_pos; 
    18441844 
    18451845    last = 0; 
    18461846    syck_emitter_mark_node(self->emitter, last);