Commit e2a40b50 authored by Kirill Smelkov's avatar Kirill Smelkov

.

parent cce405b1
......@@ -127,7 +127,10 @@ cdef class PyFileH:
property pinned:
def __get__(PyFileH pywfileh):
# XXX cast: needed for cython to automatically convert to py dict
return <unordered_map[int64_t, Tid]> _tfileh_pinned(pywfileh.wfileh)
cdef dict p = <unordered_map[int64_t, Tid]> _tfileh_pinned(pywfileh.wfileh)
for blk in p:
p[blk] = p64(p[blk]) # rev(int64) -> rev(bytes)
return p
cdef class PyMapping:
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment