pike.git / src / modules / Image / dct.c

version» Context lines:

pike.git/src/modules/Image/dct.c:1: - /* $Id: dct.c,v 1.1 1997/02/11 08:35:42 hubbe Exp $ */ + /* $Id: dct.c,v 1.2 1997/03/10 21:33:36 grubba Exp $ */      #include "global.h"      #include <math.h>   #include <ctype.h>      #include "stralloc.h"   #include "global.h"   #include "types.h"   #include "macros.h"
pike.git/src/modules/Image/dct.c:34:    rgbd_group *area,*val;    struct object *o;    struct image *img;    INT32 x,y,u,v;    double xsz2,ysz2,enh,xp,yp,dx,dy;    double *costbl;    rgb_group *pix;       if (!THIS->img) error("no image\n");    -  fprintf(stderr,"%d bytes, %d bytes\n", -  sizeof(rgbd_group)*THIS->xsize*THIS->ysize, -  sizeof(rgb_group)*THIS->xsize*THIS->ysize+1); +  fprintf(stderr,"%lu bytes, %lu bytes\n", +  (unsigned long)(sizeof(rgbd_group)*THIS->xsize*THIS->ysize), +  (unsigned long)(sizeof(rgb_group)*THIS->xsize*THIS->ysize+1));       if (!(area=malloc(sizeof(rgbd_group)*THIS->xsize*THIS->ysize+1)))    error("Out of memory\n");       if (!(costbl=malloc(sizeof(double)*THIS->xsize+1)))    {    free(area);    error("Out of memory\n");    }