mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
* ext/zlib/zlib.c (rb_deflate_params): flush before deflateParams.
[ruby-core:17675] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@18029 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
bf050c3cd6
commit
7a89495beb
2 changed files with 6 additions and 0 deletions
|
@ -1,3 +1,8 @@
|
|||
Fri Jul 11 22:58:28 2008 Yusuke Endoh <mame@tsg.ne.jp>
|
||||
|
||||
* ext/zlib/zlib.c (rb_deflate_params): flush before deflateParams.
|
||||
[ruby-core:17675]
|
||||
|
||||
Fri Jul 11 22:09:01 2008 NAKAMURA Usaku <usa@ruby-lang.org>
|
||||
|
||||
* win32/setup.rb, win32/Makefile.sub (PLATFORM): use $(PLATFORM)
|
||||
|
|
|
@ -1293,6 +1293,7 @@ rb_deflate_params(VALUE obj, VALUE v_level, VALUE v_strategy)
|
|||
level = ARG_LEVEL(v_level);
|
||||
strategy = ARG_STRATEGY(v_strategy);
|
||||
|
||||
zstream_run(z, (Bytef*)"", 0, Z_SYNC_FLUSH);
|
||||
err = deflateParams(&z->stream, level, strategy);
|
||||
while (err == Z_BUF_ERROR) {
|
||||
rb_warning("deflateParams() returned Z_BUF_ERROR");
|
||||
|
|
Loading…
Reference in a new issue