-
Notifications
You must be signed in to change notification settings - Fork 27
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Separate inflate and deflate functions
- Loading branch information
1 parent
ba354f4
commit b715e24
Showing
1 changed file
with
75 additions
and
21 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
b715e24
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hello,
When the second argument, chunk size is 1, the test file test.lua does not work.
% luajit test.lua sample.gz 1
But C file, zpipe.c with chunk size 1 has no error.
#define CHUNK 1 /16384/
% gcc -o zpipe zpipe.c -lz
% ./zpipe < sample > sample.gz
% ./zpipe -d < sample.gz > sample
b715e24
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
When I did pull request for the first time, the test with chunk size is 1 was OK.
b715e24
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hey, I think thats actually an issue with the way
test.lua
is callingstring.sub
rather than an issue with the implementation.The example code from the README works for me with bufsize set to 1
b715e24
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Fixed! aaa6284