fix UWP build error
- fix the following UWP build errors caught by vcpkg's CI src\wavelib.c(3673): error C4703: potentially uninitialized local pointer variable 'out' used src\wavelib.c(3499): error C4703: potentially uninitialized local pointer variable 'wavecoeff' used - move the definition of `out` variable to support old C89 compilers;
This commit is contained in:
parent
f104d084be
commit
9d20de8d29
@ -3353,7 +3353,7 @@ void setWTConv(wt_object wt, const char *cmethod) {
|
||||
}
|
||||
|
||||
double* dwt2(wt2_object wt, double *inp) {
|
||||
double *wavecoeff;
|
||||
double *wavecoeff = NULL;
|
||||
int i, J, iter, N, lp, rows_n, cols_n, rows_i, cols_i;
|
||||
int ir, ic, istride,ostride;
|
||||
int aLL, aLH, aHL, aHH, cdim,clen;
|
||||
@ -3504,11 +3504,11 @@ void idwt2(wt2_object wt, double *wavecoeff, double *oup) {
|
||||
int istride, ostride, iter, J;
|
||||
int aLL, aLH, aHL, aHH;
|
||||
double *cL, *cH, *X_lp,*orig;
|
||||
double *out = NULL;
|
||||
|
||||
rows = wt->rows;
|
||||
cols = wt->cols;
|
||||
J = wt->J;
|
||||
double *out;
|
||||
|
||||
|
||||
if (!strcmp(wt->ext, "per")) {
|
||||
|
Loading…
Reference in New Issue
Block a user