Branch: Tag:

2002-04-07

2002-04-07 14:23:13 by Leif Stensson <leif@lysator.liu.se>

Fixed [bug 2883 (#2883)] "Module GZ fails" (Error: Failed to initialize gz_deflate)
on AIX RS/6000.

Moral: never use a char to do an int's job, and if you do anyway, at
least make sure to get the sign right in a portable way. :-)

Rev: src/modules/Gz/zlibmod.c:1.44

5:   \*/   /**/   #include "global.h" - RCSID("$Id: zlibmod.c,v 1.43 2002/01/16 03:02:33 nilsson Exp $"); + RCSID("$Id: zlibmod.c,v 1.44 2002/04/07 14:23:13 leif Exp $");      #include "zlib_machine.h"   
34:      struct zipper   { -  char level; -  char state; +  int level; +  int state;    struct z_stream_s gz;   #ifdef _REENTRANT    DEFINE_MUTEX(lock);