bool → cbool (probably just a typo)

Fixes https://github.com/capnproto/pycapnp/issues/249
This commit is contained in:
Timothy Hobbs 2021-04-25 21:51:12 +02:00 committed by GitHub
parent 125e9713ca
commit 0353044587
Failed to generate hash of commit

View file

@ -69,7 +69,7 @@ cpdef _set_{{field.name}}(self, {{field.type}}_t value):
cpdef _set_{{field.name}}(self, value=None): cpdef _set_{{field.name}}(self, value=None):
pass pass
{% elif 'bool' == field['type'] -%} {% elif 'bool' == field['type'] -%}
cpdef _set_{{field.name}}(self, bool value): cpdef _set_{{field.name}}(self, cbool value):
self.thisptr_child.set{{field.c_name}}(value) self.thisptr_child.set{{field.c_name}}(value)
{% elif 'list' == field['type'] -%} {% elif 'list' == field['type'] -%}
cpdef _set_{{field.name}}(self, list value): cpdef _set_{{field.name}}(self, list value):