Commit e2a40b50 authored by Kirill Smelkov's avatar Kirill Smelkov

.

parent cce405b1
...@@ -127,7 +127,10 @@ cdef class PyFileH: ...@@ -127,7 +127,10 @@ cdef class PyFileH:
property pinned: property pinned:
def __get__(PyFileH pywfileh): def __get__(PyFileH pywfileh):
# XXX cast: needed for cython to automatically convert to py dict # 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: 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