Skip to content
Snippets Groups Projects
Commit be953fd7 authored by Albert Gräf's avatar Albert Gräf Committed by Albert Gräf
Browse files

Bugfix (sigfiddle_doinit, backported vanilla rev. 2c98b929).

parent e59482df
No related branches found
No related tags found
1 merge request!515Various bugfixes
...@@ -1118,9 +1118,9 @@ int sigfiddle_doinit(t_sigfiddle *x, long npoints, long npitch, ...@@ -1118,9 +1118,9 @@ int sigfiddle_doinit(t_sigfiddle *x, long npoints, long npitch,
int i; int i;
if (!npeakanal && !npeakout) npeakanal = DEFNPEAK, npeakout = 0; if (!npeakanal && !npeakout) npeakanal = DEFNPEAK, npeakout = 0;
if (!npeakanal < 0) npeakanal = 0; if (npeakanal < 0) npeakanal = 0;
else if (npeakanal > MAXPEAK) npeakanal = MAXPEAK; else if (npeakanal > MAXPEAK) npeakanal = MAXPEAK;
if (!npeakout < 0) npeakout = 0; if (npeakout < 0) npeakout = 0;
else if (npeakout > MAXPEAK) npeakout = MAXPEAK; else if (npeakout > MAXPEAK) npeakout = MAXPEAK;
if (npitch <= 0) npitch = 0; if (npitch <= 0) npitch = 0;
else if (npitch > MAXNPITCH) npitch = MAXNPITCH; else if (npitch > MAXNPITCH) npitch = MAXNPITCH;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment