8000 Merge branch 'release-0.4' · donalm/msgpack-python@83e7b0a · GitHub
[go: up one dir, main page]

Skip to content

Commit 83e7b0a

Browse files
committed
Merge branch 'release-0.4'
2 parents 0ef5f4d + b911b3c commit 83e7b0a

File tree

3 files changed

+4
-7
lines changed

3 files changed

+4
-7
lines changed

appveyor.yml

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -13,10 +13,7 @@ environment:
1313
- PYTHON: "C:\\Python27-x64"
1414
- PYTHON: "C:\\Python34-x64"
1515
DISTUTILS_USE_SDK: "1"
16-
17-
# Python35-x64 test fails with MemoryError
18-
# TODO: investigate it
19-
#- PYTHON: "C:\\Python35-x64"
16+
- PYTHON: "C:\\Python35-x64"
2017

2118
install:
2219
# We need wheel installed to build wheels

msgpack/unpack.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -265,9 +265,9 @@ static inline int unpack_callback_ext(unpack_user* u, const char* base, const ch
265265
}
266266
// length also includes the typecode, so the actual data is length-1
267267
#if PY_MAJOR_VERSION == 2
268-
py = PyObject_CallFunction(u->ext_hook, "(is#)", typecode, pos, length-1);
268+
py = PyObject_CallFunction(u->ext_hook, "(is#)", (int)typecode, pos, (Py_ssize_t)length-1);
269269
#else
270-
py = PyObject_CallFunction(u->ext_hook, "(iy#)", typecode, pos, length-1);
270+
py = PyObject_CallFunction(u->ext_hook, "(iy#)", (int)typecode, pos, (Py_ssize_t)length-1);
271271
#endif
272272
if (!py)
273273
return -1;

setup.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ class NoCython(Exception):
2121

2222
def cythonize(src):
2323
sys.stderr.write("cythonize: %r\n" % (src,))
24-
cython_compiler.compile([src], cplus=True, emit_linenums=True)
24+
cython_compiler.compile([src], cplus=True)
2 45E7 525

2626
def ensure_source(src):
2727
pyx = os.path.splitext(src)[0] + '.pyx'

0 commit comments

Comments
 (0)
0