Skip to content

Commit

Permalink
make output buffer 1% bigger than input per CFITSIO guidance - #496
Browse files Browse the repository at this point in the history
  • Loading branch information
mohawk2 committed Oct 22, 2024
1 parent 0a28dd2 commit 180a836
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Libtmp/Compression/compression.pd
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@ EOD
pp_def(
"rice_compress",
HandleBad => 0,
Pars => 'in(n); [o]out(m=CALC($SIZE(n))); int[o]len()',
Pars => 'in(n); [o]out(m=CALC(ceil($SIZE(n) * 1.01))); int[o]len()',
OtherPars => "int blocksize", # in OtherPars to avoid autopromotion
GenericTypes =>['B','S','US','L'],
Doc => <<'EOD',
Expand Down

0 comments on commit 180a836

Please sign in to comment.