added a check to hopefully satisfy some brain dead boundscheckers

and the folks who use them
This commit is contained in:
Mark Borgerding 2006-06-01 03:04:28 +00:00
parent a09fc4a364
commit 14c9235c44

View File

@ -73,6 +73,13 @@ kiss_fftnd_cfg kiss_fftnd_alloc(const int *dims,int ndims,int inverse_fft,void*m
st->states[i] = kiss_fft_alloc (st->dims[i], inverse_fft, ptr,&len);
ptr += len;
}
if ( ptr - (char*)st != memneeded ) {
fprintf(stderr,
"################################################################################\n"
"Internal error! Memory allocation miscalculation\n"
"################################################################################\n"
);
}
return st;
}