Skip to content

Commit 09aa184

Browse files
author
Andrei Pavel
authored
c++ BUGFIX value_type() return value type (#1078)
1 parent b11c70c commit 09aa184

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

swig/cpp/src/Tree_Data.hpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -243,7 +243,7 @@ class Data_Node_Leaf_List : public Data_Node
243243
/** get value variable from [lyd_node_leaf_list](@ref lyd_node_leaf_list)*/
244244
S_Value value();
245245
/** get value_type variable from [lyd_node_leaf_list](@ref lyd_node_leaf_list)*/
246-
uint16_t value_type() {return ((struct lyd_node_leaf_list *) node)->value_type;};
246+
LY_DATA_TYPE value_type() {return ((struct lyd_node_leaf_list *) node)->value_type;};
247247
/** get child variable from [lyd_node_leaf_list](@ref lyd_node_leaf_list)*/
248248
S_Data_Node child() {return nullptr;};
249249

@@ -306,7 +306,7 @@ class Attr
306306
/** get value variable from [lyd_attr](@ref lyd_attr)*/
307307
S_Value value();
308308
/** get value_type variable from [lyd_attr](@ref lyd_attr)*/
309-
uint16_t value_type() {return attr->value_type;};
309+
LY_DATA_TYPE value_type() {return attr->value_type;};
310310
private:
311311
struct lyd_attr *attr;
312312
S_Deleter deleter;

0 commit comments

Comments
 (0)