mirror of
https://github.com/msgpack/msgpack-python.git
synced 2025-11-01 01:50:54 +00:00
Make sure objects inherited from Dict are properly casted (or else Cython will complain and crash).
This commit is contained in:
parent
7a4af28fa1
commit
07506667c9
1 changed files with 1 additions and 1 deletions
|
|
@ -128,7 +128,7 @@ cdef class Packer(object):
|
|||
if ret == 0:
|
||||
ret = msgpack_pack_raw_body(&self.pk, rawval, len(o))
|
||||
elif PyDict_Check(o):
|
||||
d = o
|
||||
d = <dict>o
|
||||
ret = msgpack_pack_map(&self.pk, len(d))
|
||||
if ret == 0:
|
||||
for k,v in d.iteritems():
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue