Branch: Tag:

2001-03-04

2001-03-04 19:27:20 by Mirar (Pontus Hagland) <pike@sort.mirar.org>

more fixes to support INT_TYPE > INT32

Rev: src/acconfig.h:1.81
Rev: src/configure.in:1.495
Rev: src/error.c:1.70
Rev: src/interpret.c:1.188
Rev: src/interpret.h:1.78
Rev: src/modules/Gmp/mpz_glue.c:1.90
Rev: src/modules/Image/colors.c:1.46
Rev: src/modules/sprintf/acconfig.h:1.3
Rev: src/modules/sprintf/configure.in:1.8
Rev: src/modules/sprintf/sprintf.c:1.77
Rev: src/opcodes.c:1.103
Rev: src/operators.c:1.129
Rev: src/svalue.c:1.99

1:   /*   **! module Image   **! note - **! $Id: colors.c,v 1.45 2001/03/04 15:27:54 mirar Exp $ + **! $Id: colors.c,v 1.46 2001/03/04 19:27:19 mirar Exp $   **! submodule Color   **!   **! This module keeps names and easy handling
179:      #include "global.h"    - RCSID("$Id: colors.c,v 1.45 2001/03/04 15:27:54 mirar Exp $"); + RCSID("$Id: colors.c,v 1.46 2001/03/04 19:27:19 mirar Exp $");      #include "image_machine.h"   
653:       sh=4*(sizeof(COLORTYPE)*2-i);    if (sh>0) -  sprintf(buf,"#%0*x%0*x%0*x",i,(unsigned)(THIS->rgb.r>>sh), -  i,(unsigned)(THIS->rgb.g>>sh),i,(unsigned)(THIS->rgb.b>>sh)); +  sprintf(buf,"#%0*x%0*x%0*x", +  (int)i,(unsigned)(THIS->rgb.r>>sh), +  (int)i,(unsigned)(THIS->rgb.g>>sh), +  (int)i,(unsigned)(THIS->rgb.b>>sh));    else    {    unsigned INT32 r=THIS->rgbl.r;
669:    sh=0;    }    sprintf(buf,"#%0*x%0*x%0*x", -  i,(unsigned)(r>>sh),i,(unsigned)(g>>sh),i,(unsigned)(b>>sh)); +  (int)i,(unsigned)(r>>sh), +  (int)i,(unsigned)(g>>sh), +  (int)i,(unsigned)(b>>sh));    }    }    else