XSPICE sine: out-of-bounds removed

This commit is contained in:
h_vogt
2012-09-08 01:38:25 +02:00
parent 10d97d222e
commit bcbd506ccc
+1 -1
View File
@@ -249,7 +249,7 @@ void cm_sine(ARGS) /* structure holding parms,
must determine position progressively & then
calculate required output. ***/
for (i=0; i<cntl_size; i++) {
for (i=0; i<cntl_size-1; i++) {
if ((cntl_input < *(x+i+1)) && (cntl_input >= *(x+i))) {