mirror of
https://github.com/Unidata/netcdf-c.git
synced 2024-11-21 03:13:42 +08:00
Merge branch 'patch-16' of https://github.com/gsjaardema/netcdf-c into gsjaardema-batch
This commit is contained in:
commit
000096aadb
@ -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 {
|
||||
|
Loading…
Reference in New Issue
Block a user