Skip to content

Commit 260f4e1

Browse files
committed
tree data BUGFIX overlapping bits
1 parent 1824ef4 commit 260f4e1

1 file changed

Lines changed: 5 additions & 5 deletions

File tree

src/tree_data.h

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -929,9 +929,9 @@ struct lyd_node_any {
929929
*
930930
* Any information about node types encoded in the format is hinted by these values.
931931
*/
932-
#define LYD_NODEHINT_LIST 0x0080 /**< node is allowed to be a list instance */
933-
#define LYD_NODEHINT_LEAFLIST 0x0100 /**< node is allowed to be a leaf-list instance */
934-
#define LYD_NODEHINT_CONTAINER 0x0200 /**< node is allowed to be a container instance */
932+
#define LYD_NODEHINT_LIST 0x1000 /**< node is allowed to be a list instance */
933+
#define LYD_NODEHINT_LEAFLIST 0x2000 /**< node is allowed to be a leaf-list instance */
934+
#define LYD_NODEHINT_CONTAINER 0x4000 /**< node is allowed to be a container instance */
935935
/**
936936
* @} lydnodehints
937937
*/
@@ -946,11 +946,11 @@ struct lyd_node_any {
946946
* Any information about value and node types encoded in the format is hinted by these values.
947947
* It combines [value hints](@ref lydvalhints) and [node hints](@ref lydnodehints).
948948
*/
949-
#define LYD_HINT_DATA 0x03F3 /**< special node/value hint to be used for generic data node/value (for cases when
949+
#define LYD_HINT_DATA 0xFFF3 /**< special node/value hint to be used for generic data node/value (for cases when
950950
there is no encoding or it does not provide any additional information about
951951
a node/value type); do not combine with specific [value hints](@ref lydvalhints)
952952
or [node hints](@ref lydnodehints). */
953-
#define LYD_HINT_SCHEMA 0x03FF /**< special node/value hint to be used for generic schema node/value(for cases when
953+
#define LYD_HINT_SCHEMA 0xFFFF /**< special node/value hint to be used for generic schema node/value(for cases when
954954
there is no encoding or it does not provide any additional information about
955955
a node/value type); do not combine with specific [value hints](@ref lydvalhints)
956956
or [node hints](@ref lydnodehints). */

0 commit comments

Comments
 (0)