*/
s->pending_buf = (unsigned char *) ZALLOC(strm, s->lit_bufsize, 4);
- s->pending_buf_size = (unsigned long)s->lit_bufsize * 4;
+ s->pending_buf_size = s->lit_bufsize * 4;
if (s->window == NULL || s->prev == NULL || s->head == NULL ||
s->pending_buf == NULL) {
memcpy(ds->window, ss->window, ds->w_size * 2 * sizeof(unsigned char));
memcpy((void *)ds->prev, (void *)ss->prev, ds->w_size * sizeof(Pos));
memcpy((void *)ds->head, (void *)ss->head, HASH_SIZE * sizeof(Pos));
- memcpy(ds->pending_buf, ss->pending_buf, (unsigned int)ds->pending_buf_size);
+ memcpy(ds->pending_buf, ss->pending_buf, ds->pending_buf_size);
ds->pending_out = ds->pending_buf + (ss->pending_out - ss->pending_buf);
ds->sym_buf = ds->pending_buf + ds->lit_bufsize;
typedef struct internal_state {
PREFIX3(stream) *strm; /* pointer back to this zlib stream */
unsigned char *pending_buf; /* output still pending */
- unsigned long pending_buf_size; /* size of pending_buf */
unsigned char *pending_out; /* next pending byte to output to the stream */
+ uint32_t pending_buf_size; /* size of pending_buf */
uint32_t pending; /* nb of bytes in the pending buffer */
int wrap; /* bit 0 true for zlib, bit 1 true for gzip */
- PREFIX(gz_headerp) gzhead; /* gzip header information to write */
uint32_t gzindex; /* where in extra, name, or comment */
+ PREFIX(gz_headerp) gzhead; /* gzip header information to write */
int status; /* as the name implies */
unsigned char method; /* can only be DEFLATED */
int last_flush; /* value of flush param for previous deflate call */