Commit d537430b authored by Maxime Perrotin's avatar Maxime Perrotin
Browse files

Real types are not basic, when testing equality

parent 2e1ba712
......@@ -1218,7 +1218,7 @@ def _equality(expr):
actual_type = type_name(expr.left.exprType)
lbty = find_basic_type(expr.left.exprType)
basic = lbty.kind in ('IntegerType', 'Integer32Type', 'BooleanType',
'RealType', 'EnumeratedType', 'ChoiceEnumeratedType')
'EnumeratedType', 'ChoiceEnumeratedType')
if basic:
ada_string = u'({left} {op} {right})'.format(
left=left_str, op=expr.operand, right=right_str)
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment