mirror of
https://github.com/Unidata/netcdf-c.git
synced 2024-11-21 03:13:42 +08:00
Fix missing casts of var->filters
This commit is contained in:
parent
ff58777bc7
commit
91f3e75cab
@ -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);
|
||||
}
|
||||
|
@ -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;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user