summaryrefslogtreecommitdiff
path: root/tools/asn2wrs.py
diff options
context:
space:
mode:
Diffstat (limited to 'tools/asn2wrs.py')
-rwxr-xr-xtools/asn2wrs.py4
1 files changed, 3 insertions, 1 deletions
diff --git a/tools/asn2wrs.py b/tools/asn2wrs.py
index 18fe4d12bf..797dc1cb0e 100755
--- a/tools/asn2wrs.py
+++ b/tools/asn2wrs.py
@@ -3225,7 +3225,9 @@ class Type (Node):
if str(minv).isdigit():
minv += 'U'
elif (str(minv)[0] == "-") and str(minv)[1:].isdigit():
- if (long(minv) < -(2**31)):
+ if (long(minv) == -(2**31)):
+ minv = "G_MININT32"
+ elif (long(minv) < -(2**31)):
minv = "G_GINT64_CONSTANT(%s)" % (str(minv))
if str(maxv).isdigit():
if (long(maxv) >= 2**32):