Browse Source

fix expandednodeid

Julius Pfrommer 9 years ago
parent
commit
61ce52a7a6
1 changed files with 1 additions and 1 deletions
  1. 1 1
      tools/generate_datatypes.py

+ 1 - 1
tools/generate_datatypes.py

@@ -138,7 +138,7 @@ class BuiltinType(object):
                 ".padding = offsetof(UA_ExpandedNodeId, namespaceUri) - sizeof(UA_NodeId), .isArray = UA_FALSE }," + \
                 "\n\t{.memberTypeIndex = UA_TYPES_UINT32, .namespaceZero = UA_TRUE, " + \
                 (".memberName = \"serverIndex\", " if typeintrospection else "") + \
-                ".padding = offsetof(UA_ExpandedNodeId, serverIndex) - offsetof(UA_ExpandedNodeId, namespaceUri) - sizeof(UA_UInt32), .isArray = UA_FALSE }},\n" + \
+                ".padding = offsetof(UA_ExpandedNodeId, serverIndex) - offsetof(UA_ExpandedNodeId, namespaceUri) - sizeof(UA_String), .isArray = UA_FALSE }},\n" + \
                 ".typeIndex = UA_TYPES_EXPANDEDNODEID }"
 
         if self.name == "UA_QualifiedName":