Branch: Tag:

1997-07-19

1997-07-19 20:29:59 by Fredrik Hübinette (Hubbe) <hubbe@hubbe.net>

bugfix

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

4:   ||| See the files COPYING and DISCLAIMER for more information.   \*/   #include "global.h" - RCSID("$Id: zlibmod.c,v 1.8 1997/05/19 22:49:09 hubbe Exp $"); + RCSID("$Id: zlibmod.c,v 1.9 1997/07/19 20:29:59 hubbe Exp $");      #include "zlib_machine.h"   
55:    {    if(sp[-args].type != T_INT)    error("Bad argument 1 to gz->create()\n"); -  if(sp[-args].u.integer < Z_NO_COMPRESSION || -  sp[-args].u.integer > Z_BEST_COMPRESSION) +  level=sp[-args].u.integer; +  if(level < Z_NO_COMPRESSION || +  level > Z_BEST_COMPRESSION)    {    error("Compression level out of range for gz_deflate->create()\n");    }