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:
parent
0a50acbb66
commit
a6fa3aaa11
|
|
@ -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 */
|
||||
|
|
|
|||
Loading…
Reference in New Issue