Skip to content

Commit

Permalink
Corrected the parsing of the "model" command, which was failing to
Browse files Browse the repository at this point in the history
pass the right cell name to the routine which counts the number of
pins.  Using this in a setup file will prevent netgen from spending
time matching low-level devices.
  • Loading branch information
RTimothyEdwards committed May 14, 2024
1 parent 2d427ae commit fcee934
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
2 changes: 1 addition & 1 deletion VERSION
Original file line number Diff line number Diff line change
@@ -1 +1 @@
1.5.274
1.5.275
3 changes: 1 addition & 2 deletions tcltk/tclnetgen.c
Original file line number Diff line number Diff line change
Expand Up @@ -1595,8 +1595,7 @@ _netgen_model(ClientData clientData,
return result;

if (objc == 3) {
model = Tcl_GetString(objv[2]);
nports = NumberOfPorts(model, fnum);
nports = NumberOfPorts(tp->name, fnum);

if (Tcl_GetIndexFromObj(interp, objv[2], (CONST84 char **)modelclasses,
"class", 0, &index) != TCL_OK) {
Expand Down

0 comments on commit fcee934

Please sign in to comment.