aboutsummaryrefslogtreecommitdiffstats
path: root/tools/asn2wrs.py
diff options
context:
space:
mode:
authorTomas Kukosa <tomas.kukosa@siemens.com>2009-04-14 07:34:56 +0000
committerTomas Kukosa <tomas.kukosa@siemens.com>2009-04-14 07:34:56 +0000
commit3d8d91d80c484fe2bc133c1db4639a8408fcdff4 (patch)
tree3084f0341ad1f70ffbcca20c533e375b335c9ff0 /tools/asn2wrs.py
parente99e0bc9bb59663c597e0ffe3b45c3f2fb43d4ce (diff)
support UINT64 constants for upper value bounds
svn path=/trunk/; revision=28042
Diffstat (limited to 'tools/asn2wrs.py')
-rwxr-xr-xtools/asn2wrs.py6
1 files changed, 5 insertions, 1 deletions
diff --git a/tools/asn2wrs.py b/tools/asn2wrs.py
index 6661b076e8..624d690097 100755
--- a/tools/asn2wrs.py
+++ b/tools/asn2wrs.py
@@ -3104,7 +3104,11 @@ class Type (Node):
if minv == 'MIN': minv = 'NO_BOUND'
if maxv == 'MAX': maxv = 'NO_BOUND'
if str(minv).isdigit(): minv += 'U'
- if str(maxv).isdigit(): maxv += 'U'
+ if str(maxv).isdigit():
+ if (long(maxv) >= 2**32):
+ maxv = "G_GUINT64_CONSTANT(%s)" % (str(maxv))
+ else:
+ maxv += 'U'
if (ext): ext = 'TRUE'
else: ext = 'FALSE'
return (minv, maxv, ext)