frontend/device.c, com_alter_common(), #2/11 set `v_type' and `v_flags' too

This commit is contained in:
rlar 2015-12-26 18:59:38 +01:00
parent fd2329c7e9
commit c284161949
1 changed files with 3 additions and 0 deletions

View File

@ -14,6 +14,7 @@ Modified: 2000 AlansFixes
#include "ngspice/cpdefs.h"
#include "ngspice/ftedefs.h"
#include "ngspice/dgen.h"
#include "ngspice/sim.h"
#include "circuits.h"
#include "device.h"
@ -1324,6 +1325,8 @@ com_alter_common(wordlist *wl, int do_model)
if (!dv)
return;
dv->v_name = copy("real vector");
dv->v_type = SV_NOTYPE;
dv->v_flags = VF_REAL;
type &= IF_VARTYPES;
if (type == IF_REALVEC) {
list = TMALLOC(double, 1);