mirror of
https://github.com/msgpack/msgpack-python.git
synced 2026-02-06 17:59:52 +00:00
Merge pull request #116 from msgpack/fix-0_4_3-regression
Fix compile error on _packer
This commit is contained in:
commit
ed30acb934
3 changed files with 11 additions and 4 deletions
|
|
@ -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
|
||||
|
|
|
|||
|
|
@ -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
11
tox.ini
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue