fix LINT and ULINT ranges
authorAndrey Skvortsov <andrej.skvortzov@gmail.com>
Wed, 13 Sep 2017 10:18:04 +0300
changeset 1802 74a3f4d5f407
parent 1801 58ff55053518
child 1803 da138c5a3063
fix LINT and ULINT ranges
plcopen/definitions.py
--- a/plcopen/definitions.py	Tue Sep 12 18:32:13 2017 +0300
+++ b/plcopen/definitions.py	Wed Sep 13 10:18:04 2017 +0300
@@ -114,11 +114,11 @@
     ("SINT",  (-2**7,  2**7 - 1)),
     ("INT",   (-2**15, 2**15 - 1)),
     ("DINT",  (-2**31, 2**31 - 1)),
-    ("LINT",  (-2**31, 2**31 - 1)),
+    ("LINT",  (-2**63, 2**63 - 1)),
     ("USINT", (0,      2**8 - 1)),
     ("UINT",  (0,      2**16 - 1)),
     ("UDINT", (0,      2**32 - 1)),
-    ("ULINT", (0,      2**32 - 1))
+    ("ULINT", (0,      2**64 - 1))
 ]
 
 ANY_TO_ANY_FILTERS = {