Add support for Unsigned int
[bertos.git] / wizard / bertos_utils.py
index d405130fe3741f4319db2743435e05671906c1ff..5436a3b3bd5afb53e9bc88ac61ef1d791f6ec575 100644 (file)
@@ -55,6 +55,8 @@ def createBertosProject(projectInfos):
         string = open(sourcesDir + "/" + key, "r").read()
         for parameter, infos in value.items():
             value = infos["value"]
+            if "unsigned" in infos["informations"].keys() and infos["informations"]["unsigned"]:
+                value += "U"
             if "long" in infos["informations"].keys() and infos["informations"]["long"]:
                 value += "L"
             string = sub(string, parameter, value)