Ver código fonte

fix a cast to bytestring

Julius Pfrommer 9 anos atrás
pai
commit
a5005437a9
1 arquivos alterados com 2 adições e 2 exclusões
  1. 2 2
      include/ua_types.h

+ 2 - 2
include/ua_types.h

@@ -434,13 +434,13 @@ static UA_INLINE UA_NodeId UA_NODEID_BYTESTRING(UA_UInt16 nsIndex, char *chars)
     UA_NodeId id;
     id.namespaceIndex = nsIndex;
     id.identifierType = UA_NODEIDTYPE_BYTESTRING;
-    id.identifier.string = UA_BYTESTRING(chars);
+    id.identifier.byteString = UA_BYTESTRING(chars);
     return id; }
 static UA_INLINE UA_NodeId UA_NODEID_BYTESTRING_ALLOC(UA_UInt16 nsIndex, char *chars) {
     UA_NodeId id;
     id.namespaceIndex = nsIndex;
     id.identifierType = UA_NODEIDTYPE_BYTESTRING;
-    id.identifier.string = UA_BYTESTRING_ALLOC(chars);
+    id.identifier.byteString = UA_BYTESTRING_ALLOC(chars);
     return id; }
 
 /* ExpandedNodeId */