Merge branch 'patch-16' of https://github.com/gsjaardema/netcdf-c into gsjaardema-batch

This commit is contained in:
Ward Fisher 2018-01-31 16:16:37 -07:00
commit 000096aadb

View File

@ -249,13 +249,13 @@ genbin_definespecialattributes(Symbol* var)
level = 9; /* default */
else
level = special->_FilterParams[0];
if(level < 0 || level > 9)
if(level > 9)
derror("Illegal deflate level");
else {
stat = nc_def_var_deflate(var->container->ncid,
var->ncid,
(special->_Shuffle == 1?1:0),
(level >= 0?1:0),
(level > 0?1:0),
level);
}
} else {