Browse Source

Prevent buffer overflow, remove unused

pre-master-46
Holger Vogt 3 years ago
parent
commit
cb0e794907
  1. 5
      src/xspice/icm/analog/pwlts/cfunc.mod

5
src/xspice/icm/analog/pwlts/cfunc.mod

@ -155,9 +155,6 @@ void cm_pwlts(ARGS) /* structure holding parms,
double test1; /* debug testing value */
double test2; /* debug testing value */
double *last_x_value; /* static variable for limiting */
double test; /* temp storage variable for limit testing */
Mif_Complex_t ac_gain;
CALLBACK = cm_pwlts_callback;
@ -283,7 +280,7 @@ void cm_pwlts(ARGS) /* structure holding parms,
/*** must determine position progressively & then ***/
/*** calculate required output. ***/
for (i=1; i<size; i++) {
for (i = 1; i < size - 1; i++) {
if (x_input < (x[i] + x[i+1])/2.0) {
/* approximate position known... */

Loading…
Cancel
Save