mirror of
https://github.com/zeek/zeek.git
synced 2025-10-02 14:48:21 +00:00
maintenance updates for -O C++
This commit is contained in:
parent
ab7cccf9b6
commit
52775bea89
10 changed files with 76 additions and 3 deletions
|
@ -1136,7 +1136,11 @@ string CPPCompile::GenDirectAssign(const ExprPtr& lhs, const string& rhs_native,
|
|||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
gen = name + " = " + rhs_native;
|
||||
if ( ! top_level )
|
||||
gen = NativeToGT("(" + gen + ")", n->GetType(), gt);
|
||||
}
|
||||
|
||||
return gen;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue