From 589400f53a0c471668e3bf7cdb4e797154b559b1 Mon Sep 17 00:00:00 2001 From: Jason Paryani Date: Fri, 27 May 2016 13:52:46 -0700 Subject: [PATCH] Fix build problem with Cython v0.24 Fixes #97 --- capnp/includes/schema_cpp.pxd | 5 +++++ capnp/lib/capnp.pyx | 4 ++-- 2 files changed, 7 insertions(+), 2 deletions(-) diff --git a/capnp/includes/schema_cpp.pxd b/capnp/includes/schema_cpp.pxd index e615017..3716648 100644 --- a/capnp/includes/schema_cpp.pxd +++ b/capnp/includes/schema_cpp.pxd @@ -628,6 +628,11 @@ cdef extern from "capnp/schema.capnp.h" namespace " ::capnp::schema": void setId(UInt64) Value getValue() void setValue(Value) + cdef cppclass ListNestedNodeReader"capnp::List::Reader": + ListNestedNodeReader() + ListNestedNodeReader(ListNestedNodeReader) + Node.NestedNode.Reader operator[](uint) + uint size() cdef extern from "capnp/message.h" namespace " ::capnp": cdef cppclass ReaderOptions: diff --git a/capnp/lib/capnp.pyx b/capnp/lib/capnp.pyx index ab65392..6d1eb8c 100644 --- a/capnp/lib/capnp.pyx +++ b/capnp/lib/capnp.pyx @@ -559,9 +559,9 @@ cdef class _DynamicListBuilder: return '' % strListBuilder(self.thisptr).cStr() cdef class _List_NestedNode_Reader: - cdef List[C_Node.NestedNode].Reader thisptr + cdef C_Node.NestedNode.Reader.ListNestedNodeReader thisptr cdef _init(self, List[C_Node.NestedNode].Reader other): - self.thisptr = other + self.thisptr = other return self def __getitem__(self, index):