Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
DISCONTINUED:openSUSE:11.1:Update
libproj0
fix_mk_cheby_compile.patch
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File fix_mk_cheby_compile.patch of Package libproj0
--- src/mk_cheby.c +++ src/mk_cheby.c @@ -39,7 +39,7 @@ mk_cheby(projUV a, projUV b, double res, projUV *resid, projUV (*func)(projUV), int nu, int nv, int power) { int j, i, nru, nrv, *ncu, *ncv; - Tseries *T; + Tseries *T = NULL; projUV **w; double cutres; @@ -94,30 +94,32 @@ if (ncu[j]) nru = j + 1; /* update row max */ if (ncv[j]) nrv = j + 1; } - if (T = makeT(nru, nrv)) { + if ((T = makeT(nru, nrv))) { T->a = a; T->b = b; T->mu = nru - 1; T->mv = nrv - 1; T->power = 1; for (i = 0; i < nru; ++i) /* store coefficient rows for u */ - if (T->cu[i].m = ncu[i]) + if ((T->cu[i].m = ncu[i])) { if ((p = T->cu[i].c = (double *)pj_malloc(sizeof(double) * ncu[i]))) for (j = 0; j < ncu[i]; ++j) *p++ = (w[i] + j)->u; else goto error; + } for (i = 0; i < nrv; ++i) /* same for v */ - if (T->cv[i].m = ncv[i]) + if ((T->cv[i].m = ncv[i])) { if ((p = T->cv[i].c = (double *)pj_malloc(sizeof(double) * ncv[i]))) for (j = 0; j < ncv[i]; ++j) *p++ = (w[i] + j)->v; else goto error; + } } - } else if (T = makeT(nru, nrv)) { + } else if ((T = makeT(nru, nrv))) { /* else make returned Chebyshev coefficient structure */ T->mu = nru - 1; /* save row degree */ T->mv = nrv - 1; @@ -127,21 +129,23 @@ T->b.v = 1. / (b.v - a.v); T->power = 0; for (i = 0; i < nru; ++i) /* store coefficient rows for u */ - if (T->cu[i].m = ncu[i]) + if ((T->cu[i].m = ncu[i])) { if ((p = T->cu[i].c = (double *)pj_malloc(sizeof(double) * ncu[i]))) for (j = 0; j < ncu[i]; ++j) *p++ = (w[i] + j)->u; else goto error; + } for (i = 0; i < nrv; ++i) /* same for v */ - if (T->cv[i].m = ncv[i]) + if ((T->cv[i].m = ncv[i])) { if ((p = T->cv[i].c = (double *)pj_malloc(sizeof(double) * ncv[i]))) for (j = 0; j < ncv[i]; ++j) *p++ = (w[i] + j)->v; else goto error; + } } else goto error; }
Locations
Projects
Search
Status Monitor
Help
OpenBuildService.org
Documentation
API Documentation
Code of Conduct
Contact
Support
@OBShq
Terms
openSUSE Build Service is sponsored by
The Open Build Service is an
openSUSE project
.
Sign Up
Log In
Places
Places
All Projects
Status Monitor