fix incorrect usage of tmalloc/sizeof, incorrect indirection level
This commit is contained in:
parent
bf0b7b4386
commit
b96989b506
|
|
@ -1,3 +1,10 @@
|
|||
2010-10-24 Robert Larice
|
||||
* src/misc/wlist.c ,
|
||||
* src/spicelib/devices/bsim3/b3set.c ,
|
||||
* src/spicelib/devices/bsim3soi/b4soiset.c ,
|
||||
* src/spicelib/devices/bsim4/b4set.c :
|
||||
fix incorrect usage of tmalloc/sizeof, incorrect indirection level
|
||||
|
||||
2010-10-24 Robert Larice
|
||||
* src/frontend/com_ahelp.c ,
|
||||
* src/frontend/com_display.c ,
|
||||
|
|
|
|||
|
|
@ -144,7 +144,7 @@ wl_mkvec(wordlist *wl)
|
|||
char **v;
|
||||
|
||||
len = wl_length(wl);
|
||||
v = (char **) tmalloc((len + 1) * sizeof (char **));
|
||||
v = (char **) tmalloc((len + 1) * sizeof (char *));
|
||||
for (i = 0; i < len; i++) {
|
||||
v[i] = copy(wl->wl_word);
|
||||
wl = wl->wl_next;
|
||||
|
|
|
|||
|
|
@ -1033,7 +1033,7 @@ if((here->ptr = SMPmakeElt(matrix,here->first,here->second))==(double *)NULL){\
|
|||
InstCount++;
|
||||
}
|
||||
}
|
||||
InstArray = (BSIM3instance**)tmalloc(InstCount*sizeof(BSIM3instance**));
|
||||
InstArray = (BSIM3instance**)tmalloc(InstCount*sizeof(BSIM3instance*));
|
||||
model = (BSIM3model*)inModel;
|
||||
idx = 0;
|
||||
for( ; model != NULL; model = model->BSIM3nextModel )
|
||||
|
|
|
|||
|
|
@ -2693,7 +2693,7 @@ if((here->ptr = SMPmakeElt(matrix,here->first,here->second))==(double *)NULL){\
|
|||
InstCount++;
|
||||
}
|
||||
}
|
||||
InstArray = (B4SOIinstance**)tmalloc(InstCount*sizeof(B4SOIinstance**));
|
||||
InstArray = (B4SOIinstance**)tmalloc(InstCount*sizeof(B4SOIinstance*));
|
||||
model = (B4SOImodel*)inModel;
|
||||
idx = 0;
|
||||
for( ; model != NULL; model = model->B4SOInextModel )
|
||||
|
|
|
|||
|
|
@ -2408,7 +2408,7 @@ if((here->ptr = SMPmakeElt(matrix,here->first,here->second))==(double *)NULL){\
|
|||
InstCount++;
|
||||
}
|
||||
}
|
||||
InstArray = (BSIM4instance**)tmalloc(InstCount*sizeof(BSIM4instance**));
|
||||
InstArray = (BSIM4instance**)tmalloc(InstCount*sizeof(BSIM4instance*));
|
||||
model = (BSIM4model*)inModel;
|
||||
idx = 0;
|
||||
for( ; model != NULL; model = model->BSIM4nextModel )
|
||||
|
|
|
|||
Loading…
Reference in New Issue