# HG changeset patch # User vranyj1 # Date 1314913448 0 # Node ID 7181c835cc9d2beaf35918f2a95871f4ff0b6384 # Parent 7e8426c32bd45295acf23a1b4b272ecf3b0546f1 Fixes for Borland C compiler diff -r 7e8426c32bd4 -r 7181c835cc9d src/JavaZipSupport.st --- a/src/JavaZipSupport.st Thu Sep 01 21:14:23 2011 +0000 +++ b/src/JavaZipSupport.st Thu Sep 01 21:44:08 2011 +0000 @@ -242,12 +242,14 @@ %{ #define strm (__zStreamVal(__INST(z_stream))) + int code, consumed; + strm->next_in = (Bytef *) (__ByteArrayInstPtr(in_buf)->ba_element + __intVal(in_off)); strm->next_out = (Bytef *) (__ByteArrayInstPtr(out_buf)->ba_element + __intVal(out_off)); strm->avail_in = __intVal(in_len); strm->avail_out = __intVal(out_len); - int code, consumed; + code = inflate(strm, Z_PARTIAL_FLUSH); switch (code) {