mirror of
https://git.code.sf.net/p/ngspice/ngspice
synced 2026-08-22 13:57:32 +02:00
XSPICE sine: out-of-bounds removed
This commit is contained in:
@@ -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))) {
|
||||
|
||||
|
||||
Reference in New Issue
Block a user