commit | 1c9e79f01019554eb225966875ccb0252ef6d2ea | [log] [tgz] |
---|---|---|
author | Michal Vasko <mvasko@cesnet.cz> | Mon Aug 10 11:08:03 2020 +0200 |
committer | Michal Vasko <mvasko@cesnet.cz> | Mon Aug 10 11:08:03 2020 +0200 |
tree | 9fcc5c2dd7ac30195be3db8c162089739747bf44 | |
parent | 56daf7322717a49fb83acc136bb902a566b4d387 [diff] |
schema tree BUGFIX dfs for const schema nodes
diff --git a/src/tree_schema.h b/src/tree_schema.h index aac43bf..32e5470 100644 --- a/src/tree_schema.h +++ b/src/tree_schema.h
@@ -68,7 +68,7 @@ */ #define LYSC_TREE_DFS_BEGIN(START, ELEM) \ { int LYSC_TREE_DFS_continue = 0; struct lysc_node *LYSC_TREE_DFS_next; \ - for ((ELEM) = (LYSC_TREE_DFS_next) = (START); \ + for ((ELEM) = (LYSC_TREE_DFS_next) = (struct lysc_node*)(START); \ (ELEM); \ (ELEM) = (LYSC_TREE_DFS_next), LYSC_TREE_DFS_continue = 0)