diff --git a/koala/ast/astnodes.py b/koala/ast/astnodes.py index 03bceb44..28c033f8 100644 --- a/koala/ast/astnodes.py +++ b/koala/ast/astnodes.py @@ -317,7 +317,7 @@ def emit(self,ast,context=None, pointer = False): childs = args[0].children(ast) for child in childs: - if ':' in child.tvalue and child.tvalue != ':': + if ':' in str(child.tvalue) and child.tvalue != ':': is_range = True range = child.tvalue break