• R/O
  • SSH

quipu: Commit

quipu mercurial repository


Commit MetaInfo

Revisiond0cbe1e769ae0a8c8a702a2ab6c5b413ca838d4b (tree)
Time2019-02-06 06:21:46
AuthorAgustina Arzille <avarzille@rise...>
CommiterAgustina Arzille

Log Message

Fix handling of parent types

Change Summary

Incremental Difference

diff -r 10b744269a0f -r d0cbe1e769ae types.cpp
--- a/types.cpp Tue Feb 05 17:56:15 2019 -0300
+++ b/types.cpp Tue Feb 05 18:21:46 2019 -0300
@@ -231,6 +231,10 @@
231231 interp->raise2 ("arg-error", "parent must be a typespec");
232232
233233 p.add (px, 0);
234+
235+ const auto tx = as_array (as_typespec(px)->parents);
236+ for (int i = 0; i < tx->len; ++i)
237+ p.add (tx->data[i], 0);
234238 }
235239
236240 slotname_list_t slots;
Show on old repository browser