Explorar o código

fixed a bug in node comparisson, issue 195

Stasik0 %!s(int64=10) %!d(string=hai) anos
pai
achega
52509fcb39
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      src/ua_types.c

+ 1 - 1
src/ua_types.c

@@ -367,7 +367,7 @@ void UA_NodeId_deleteMembers(UA_NodeId *p) {
 }
 }
 
 
 UA_Boolean UA_NodeId_equal(const UA_NodeId *n1, const UA_NodeId *n2) {
 UA_Boolean UA_NodeId_equal(const UA_NodeId *n1, const UA_NodeId *n2) {
-    if(n1->namespaceIndex != n2->namespaceIndex)
+	if(n1->namespaceIndex != n2->namespaceIndex || n1->identifierType!=n2->identifierType)
         return UA_FALSE;
         return UA_FALSE;
 
 
     switch(n1->identifierType) {
     switch(n1->identifierType) {