diff --git a/src/scheduler.c b/src/scheduler.c index 181d7ec9..57bf83e1 100644 --- a/src/scheduler.c +++ b/src/scheduler.c @@ -979,7 +979,7 @@ int xschem(ClientData clientdata, Tcl_Interp *interp, int argc, const char * arg if(force || !xctx->modified || !strcmp(tclresult(), "ok")) { if(closewindow) { char s[40]; - my_snprintf(s, S(s), "exit %d", exit_status); + my_snprintf(s, S(s), "exit %s", exit_status); tcleval(s); } else clear_schematic(0, 0); @@ -1010,7 +1010,7 @@ int xschem(ClientData clientdata, Tcl_Interp *interp, int argc, const char * arg if(!has_x || force || !xctx->modified || !strcmp(tclresult(), "ok")) { if(closewindow) { char s[40]; - my_snprintf(s, S(s), "exit %d", exit_status); + my_snprintf(s, S(s), "exit %s", exit_status); tcleval(s); } else clear_schematic(0, 0); diff --git a/tests/xschemtest.tcl b/tests/xschemtest.tcl index 830a33e1..f337dda4 100644 --- a/tests/xschemtest.tcl +++ b/tests/xschemtest.tcl @@ -199,7 +199,7 @@ proc netlist_test {} { loading.sch vhdl 2975204502 mos_power_ampli.sch spice 3405708328 hierarchical_tedax.sch tedax 998070173 - LCC_instances.sch spice 372367338 + LCC_instances.sch spice 2839381760 pcb_test1.sch tedax 1925087189 test_doublepin.sch spice 4159808692 simulate_ff.sch spice 574849766