shorten writing of istarget output

issue#70
Houtan Bastani 2019-03-07 11:09:51 +01:00
parent 14e7c92f14
commit b0dac547e9
No known key found for this signature in database
GPG Key ID: 000094FB955BE169
1 changed files with 1 additions and 4 deletions

View File

@ -3682,10 +3682,7 @@ DynamicModel::writeOutput(ostream &output, const string &basename, bool block_de
output << "];" << endl
<< modstruct << "pac." << substruct << "ec.istarget = [";
for (auto it : ec_params_and_vars.second)
if (it.second)
output << "true ";
else
output << "false ";
output << (it.second ? "true " : "false ");
output << "];" << endl
<< modstruct << "pac." << substruct << "ec.isendo = [";
for (auto it : ec_params_and_vars.second)