Fix missing casts of var->filters

This commit is contained in:
Dennis Heimbigner 2020-10-09 21:26:29 -06:00
parent ff58777bc7
commit 91f3e75cab
2 changed files with 3 additions and 3 deletions

View File

@ -444,8 +444,8 @@ printfilterlist(NC_VAR_INFO_T* var, const char* tag, int line)
else name = var->hdr.name;
fprintf(stderr,"%s: line=%d: var=%s filters=",tag,line,name);
if(var != NULL) {
for(i=0;i<nclistlength(var->filters);i++) {
struct NCZ_Filter* nfs = nclistget(var->filters,i);
for(i=0;i<nclistlength((NClist*)var->filters);i++) {
struct NCZ_Filter* nfs = nclistget((NClist*)var->filters,i);
fprintf(stderr,"[%d]",i);
printfilter1(nfs);
}

View File

@ -427,7 +427,7 @@ NC4_var_par_access(int ncid, int varid, int par_access)
/* If zlib, shuffle, or fletcher32 filters are in use, then access
* must be collective. Fail an attempt to set such a variable to
* independent access. */
if ((nclistlength(var->filters) > 0 || var->shuffle || var->fletcher32) &&
if ((nclistlength((NClist*)var->filters) > 0 || var->shuffle || var->fletcher32) &&
par_access == NC_INDEPENDENT)
return NC_EINVAL;