diff options
Diffstat (limited to 'giscanner/transformer.py')
-rw-r--r-- | giscanner/transformer.py | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/giscanner/transformer.py b/giscanner/transformer.py index bd476cc7..156148f4 100644 --- a/giscanner/transformer.py +++ b/giscanner/transformer.py @@ -728,6 +728,9 @@ raise ValueError.""" value = str(symbol.const_int % 2 ** 16) else: value = str(symbol.const_int) + elif symbol.const_boolean is not None: + typeval = ast.TYPE_BOOLEAN + value = "true" if symbol.const_boolean else "false" elif symbol.const_double is not None: typeval = ast.TYPE_DOUBLE value = '%f' % (symbol.const_double, ) |