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

Refactor Ada backend (minor)

parent 84430022
......@@ -1090,10 +1090,9 @@ def _bitwise_operators(expr):
if expr.right.is_raw:
# Declare a temporary variable to store the raw value
tmp_string = u'tmp{}'.format(expr.right.tmpVar)
local_decl.append(u'{tmp} : aliased asn1Scc{eType};'.format(
local_decl.append(u'{tmp} : aliased {sort};'.format(
tmp=tmp_string,
eType=expr.right.exprType.ReferencedTypeName
.replace('-', '_')))
sort=type_name(expr.right.exprType)))
code.append(u'{tmp} := {right};'.format(tmp=tmp_string,
right=right_str))
right_str = tmp_string
......
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