-
Notifications
You must be signed in to change notification settings - Fork 78
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Mac and compatibility fixes #6
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -362,7 +362,7 @@ void test_large_inflate(compr, comprLen, uncompr, uncomprLen) | |
CHECK_ERR(err, "inflateEnd"); | ||
|
||
if (d_stream.total_out != 2*uncomprLen + comprLen/2) { | ||
fprintf(stderr, "bad large inflate: %lld\n", d_stream.total_out); | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. if you want to support gcc and clang have to use PRId64 from inttypes.h. There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Would you be happy with:
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I prefer simply % instead %10 |
||
fprintf(stderr, "bad large inflate: %ld\n", d_stream.total_out); | ||
exit(1); | ||
} else { | ||
printf("large_inflate(): OK\n"); | ||
|
@@ -559,7 +559,7 @@ int main(argc, argv) | |
fprintf(stderr, "warning: different zlib version\n"); | ||
} | ||
|
||
printf("zlib version %s = 0x%04x, compile flags = 0x%llx\n", | ||
printf("zlib version %s = 0x%04x, compile flags = 0x%lx\n", | ||
ZLIB_VERSION, ZLIB_VERNUM, zlibCompileFlags()); | ||
|
||
compr = (Byte*)calloc((uInt)comprLen, 1); | ||
|
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.
I would really rather keep the uintN_t instead.
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.
This change is not used/required in the updated PR#11.