Change the modified parameter in the Clamp function to be a pointer.

Makes it easier to identify the one being modified.
This commit is contained in:
Lioncash
2014-02-05 04:04:35 -05:00
parent 6b87a0ef20
commit 249b00c469
10 changed files with 24 additions and 24 deletions

View File

@ -123,7 +123,7 @@ float* design_fir(unsigned int *n, float* fc, float opt)
// Sanity check
if(*n==0) return NULL;
MathUtil::Clamp(fc[0],float(0.001),float(1));
MathUtil::Clamp(&fc[0],float(0.001),float(1));
float *w=(float*)calloc(sizeof(float),*n);