Przeglądaj źródła

return UA_Int32 instead of Int32 (changed in python script)

FlorianPalm 11 lat temu
rodzic
commit
2d065d2f7a
1 zmienionych plików z 1 dodań i 1 usunięć
  1. 1 1
      tool/generate_builtin.py

+ 1 - 1
tool/generate_builtin.py

@@ -188,7 +188,7 @@ def createStructured(element):
                 print('\tretval |= UA_'+t+"_encode(&(src->"+n+"),pos,dst);", end='\n', file=fc)
     print("\treturn retval;\n}\n", end='\n', file=fc)
 
-    print("Int32 "+name+"_decode(char const * src, UA_Int32* pos, " + name + "* dst) {\n\tUA_Int32 retval = UA_SUCCESS;", end='\n', file=fc)
+    print("UA_Int32 "+name+"_decode(char const * src, UA_Int32* pos, " + name + "* dst) {\n\tUA_Int32 retval = UA_SUCCESS;", end='\n', file=fc)
     # code _decode
     for n,t in valuemap.iteritems():
         if t in elementary_size: