Re: [Cython] bytearray tests fail with default unsigned char

2014-01-23 Thread Stefan Behnel
Julian Taylor, 22.01.2014 00:03: > the bytearray tests are broken when chars are unsigned. > > tests/run/bytearraymethods.pyx defines following function: > def bytearray_append(b, char c, int i, object o): > > this gets converted to an effective __Pyx_PyInt_AsUnsignedChar which > then errors out

[Cython] bytearray tests fail with default unsigned char

2014-01-21 Thread Julian Taylor
hi, the bytearray tests are broken when chars are unsigned. tests/run/bytearraymethods.pyx defines following function: def bytearray_append(b, char c, int i, object o): this gets converted to an effective __Pyx_PyInt_AsUnsignedChar which then errors out when -1 is passed in. chars are unsigned li