You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi ,
I was trying to use the plugin and I encountered what I think is a bug, please let me know if my understanding is wrong about how the generated API works.
The schema definitions that I used is the following:
structLeaf{
value @0 : Int32;
}
structInner {
left @0 :TreeNode;
right @1 : TreeNode;
}
structTreeNode {
nodeType @0 :Int32;
leaf @1 : Leaf;
inner @2 :Inner;
}
For the following code I expect 1 to be printed but 0 is printed instead ;It looks like there is something wrong in the method Tree_Node_set_leaf(...) unless I misunderstand how it should work!
Hrm, yes, the problem seems to be that TreeNode_set_leaf sets up an unresolved pointer and TreeNode_get_leaf doesn't resolve it (3rd argument to capn_getp is 0...)
Hi ,
I was trying to use the plugin and I encountered what I think is a bug, please let me know if my understanding is wrong about how the generated API works.
The schema definitions that I used is the following:
For the following code I expect 1 to be printed but 0 is printed instead ;It looks like there is something wrong in the method Tree_Node_set_leaf(...) unless I misunderstand how it should work!
The text was updated successfully, but these errors were encountered: