Commit b6bd8d78 authored by Bi-Ruei, Chiu's avatar Bi-Ruei, Chiu Committed by Lev Walkin

Use parenthesis to avoid ambiguity of operator precedence

parent 742a1966
......@@ -2642,7 +2642,7 @@ emit_member_type_selector(arg_t *arg, asn1p_expr_t *expr, asn1c_ioc_table_and_ob
const char *for_field = expr->reference->components[1].name;
ssize_t for_column = -1;
for(size_t cn = 0; cn < opt_ioc->ioct->rows ? opt_ioc->ioct->row[0]->columns : 0;
for(size_t cn = 0; cn < (opt_ioc->ioct->rows ? opt_ioc->ioct->row[0]->columns : 0);
cn++) {
if(strcmp(for_field,
opt_ioc->ioct->row[0]->column[cn].field->Identifier)
......
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