--- ray/src/rt/colortab.c 1992/10/06 12:13:48 2.2 +++ ray/src/rt/colortab.c 1993/05/05 10:18:47 2.4 @@ -53,9 +53,11 @@ static BYTE clrmap[3][256]; /* histogram of colors used */ static unsigned short histo[NRED][NGRN][NBLU]; /* initial color cube boundary */ -static int CLRCUBE[3][2] = {0,NRED,0,NGRN,0,NBLU}; +static int CLRCUBE[3][2] = {{0,NRED},{0,NGRN},{0,NBLU}}; +static int split(), cut(); + int new_ctab(ncolors) /* start new color table with max ncolors */ int ncolors; @@ -205,7 +207,7 @@ register int box[3][2]; #define c0 r register int r, g, b; int pri; - int t[HMAX], med; + long t[HMAX], med; /* find dominant axis */ pri = RED; if (box[GRN][1]-box[GRN][0] > box[pri][1]-box[pri][0])