8000 Merge pull request #116 from msgpack/fix-0_4_3-regression · kostyll/msgpack-python@ed30acb · GitHub
[go: up one dir, main page]

Skip to content

Commit ed30acb

Browse files
committed
Merge pull request msgpack#116 from msgpack/fix-0_4_3-regression
Fix compile error on _packer
2 parents 868d149 + 715fcac commit ed30acb

File tree

3 files changed

+11
-4
lines changed

3 files changed

+11
-4
lines changed

.travis.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,4 +7,4 @@ install:
77
- pip install tox cython
88
- cython --cplus msgpack/_packer.pyx msgpack/_unpacker.pyx
99

10-
script: "tox && MSGPACK_PUREPYTHON=x tox"
10+
script: tox

msgpack/pack_template.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -712,7 +712,7 @@ static inline int msgpack_pack_raw_body(msgpack_packer* x, const void* b, size_t
712712
/*
713713
* Ext
714714
*/
715-
static inline int msgpack_pack_ext(msgpack_packer* x, int8_t typecode, size_t l)
715+
static inline int msgpack_pack_ext(msgpack_packer* x, char typecode, size_t l)
716716
{
717717
if (l == 1) {
718718
unsigned char buf[2];

tox.ini

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,15 @@
11
[tox]
2-
envlist = py26,py27,py32,py33,py34,pypy,pypy3
2+
envlist = {py26,py27,py32,py33,py34}-{c,pure},{pypy,pypy3}-pure
3+
4+
[variants:pure]
5+
setenv=
6+
MSGPACK_PUREPYTHON=x
37

48
[testenv]
59
deps=
610
pytest
711

8-
commands=py.test test
12+
changedir=test
13+
commands=
14+
c: python -c 'from msgpack import _packer, _unpacker' && py.test
15+
pure: py.test

0 commit comments

Comments
 (0)
0