Merge pull request #116 from msgpack/fix-0_4_3-regression

Fix compile error on _packer
This commit is contained in:
INADA Naoki 2015-01-09 04:30:24 +09:00
commit ed30acb934
3 changed files with 11 additions and 4 deletions

View file

@ -7,4 +7,4 @@ install:
- pip install tox cython
- cython --cplus msgpack/_packer.pyx msgpack/_unpacker.pyx
script: "tox && MSGPACK_PUREPYTHON=x tox"
script: tox

View file

@ -712,7 +712,7 @@ static inline int msgpack_pack_raw_body(msgpack_packer* x, const void* b, size_t
/*
* Ext
*/
static inline int msgpack_pack_ext(msgpack_packer* x, int8_t typecode, size_t l)
static inline int msgpack_pack_ext(msgpack_packer* x, char typecode, size_t l)
{
if (l == 1) {
unsigned char buf[2];

11
tox.ini
View file

@ -1,8 +1,15 @@
[tox]
envlist = py26,py27,py32,py33,py34,pypy,pypy3
envlist = {py26,py27,py32,py33,py34}-{c,pure},{pypy,pypy3}-pure
[variants:pure]
setenv=
MSGPACK_PUREPYTHON=x
[testenv]
deps=
pytest
commands=py.test test
changedir=test
commands=
c: python -c 'from msgpack import _packer, _unpacker' && py.test
pure: py.test