You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
In r631, in four places in mk_cheby.c, the single statement in a "for" loop was split into two statements, but no curly braces were added. As a result the second half is only executed once after the loop exits, not for every iteration as the original code did. For example:
for (i = 0; i < nru; ++i) /* store coefficient rows for u */
- if (Ts->cu[i].m = ncu[i])
+ Ts->cu[i].m = ncu[i];
+ if (Ts->cu[i].m)
if ((p = Ts->cu[i].c =
(double *)pj_malloc(sizeof(double) * ncu[i])))
for (j = 0; j < ncu[i]; ++j)
Xcode 4.4 and later complains about dangling "else" statements so adding the missing curly braces fixes that warning as well.
The text was updated successfully, but these errors were encountered:
In r631, in four places in mk_cheby.c, the single statement in a "for" loop was split into two statements, but no curly braces were added. As a result the second half is only executed once after the loop exits, not for every iteration as the original code did. For example:
Xcode 4.4 and later complains about dangling "else" statements so adding the missing curly braces fixes that warning as well.
The text was updated successfully, but these errors were encountered: