pike.git / src / modules / Image / encodings / xcf.c

version» Context lines:

pike.git/src/modules/Image/encodings/xcf.c:1:   #include "global.h" - RCSID("$Id: xcf.c,v 1.15 2000/07/28 07:13:06 hubbe Exp $"); + RCSID("$Id: xcf.c,v 1.16 2000/08/03 21:25:32 grubba Exp $");      #include "image_machine.h"      #include "pike_macros.h"   #include "object.h"   #include "constants.h"   #include "module_support.h"   #include "interpret.h"   #include "object.h"   #include "svalue.h"
pike.git/src/modules/Image/encodings/xcf.c:41:   #define TILE_WIDTH 64   #define TILE_HEIGHT 64      #define STRING(X) static struct pike_string *s_##X   #include "xcf_constant_strings.h"   #undef STRING         struct buffer   { -  unsigned int len; +  size_t len;    unsigned char *str;   };         typedef enum   {    PROP_END = 0,    PROP_COLORMAP = 1,    PROP_ACTIVE_LAYER = 2,    PROP_ACTIVE_CHANNEL = 3,
pike.git/src/modules/Image/encodings/xcf.c:1155:    push_int( bpp );    push_int( ewidth );    push_int( eheight );    image_xcf_f__rle_decode( 4 );    tile = (struct pike_string *)debug_malloc_pass(sp[-1].u.string);    if(sp[-1].type != T_STRING)    fatal("Internal disaster in XCF module\n");    sp--;    }    -  if( (unsigned)(tile->len) < (unsigned)(eheight * ewidth * bpp )) +  if( (size_t)(tile->len) < (size_t)(eheight * ewidth * bpp ))    error("Too small tile, was %d bytes, I really need %d\n",    tile->len, eheight*ewidth * bpp);       s = (unsigned char *)tile->str;       check_signals(0,0,0); /* Allow ^C */       for(cy=0; cy<eheight; cy++)    {    for(cx=0; cx<ewidth; cx++)