XSPICE sine: out-of-bounds removed
This commit is contained in:
parent
10d97d222e
commit
bcbd506ccc
|
|
@ -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))) {
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue