The 'then' statement was equivalent to the 'else' statement.

Also moredimensional poly sources need only one closing bracket for input port.
This commit is contained in:
dwarning 2018-11-07 16:14:50 +01:00 committed by Holger Vogt
parent 0a50acbb66
commit a6fa3aaa11
1 changed files with 4 additions and 12 deletions

View File

@ -422,13 +422,9 @@ static char *two2three_translate(
/* Write input nets/sources */
if((type == 'e') || (type == 'g') ||
(type == 'E') || (type == 'G')) { /* These input port types are vector & need a [. */
if (dim > 1) {
sprintf(*inst_card + strlen(*inst_card), "%%vd [ ");
} else {
sprintf(*inst_card + strlen(*inst_card), "%%vd [ "); /* need something different? */
}
} else /* This input port type is scalar */
(type == 'E') || (type == 'G')) /* These input port types are vector & need a [. */
sprintf(*inst_card + strlen(*inst_card), "%%vd [ ");
else /* This input port type is scalar */
sprintf(*inst_card + strlen(*inst_card), "%%vnam [ ");
@ -436,11 +432,7 @@ static char *two2three_translate(
sprintf(*inst_card + strlen(*inst_card), "%s ", in_conn[i]);
if (dim > 1) {
sprintf(*inst_card + strlen(*inst_card), "] ");
} else {
sprintf(*inst_card + strlen(*inst_card), "] "); /* need something different? */
}
sprintf(*inst_card + strlen(*inst_card), "] ");
/* Write output nets */