X-Git-Url: http://ncurses.scripts.mit.edu/?p=ncurses.git;a=blobdiff_plain;f=test%2Fxmas.c;h=2ea08aef0307581faa49a2831b89064752561f00;hp=c9f338c0cd5dc8a238a7dbb254b5566636083ad8;hb=55ccd2b959766810cf7db8d1c4462f338ce0afc8;hpb=a8987e73ec254703634802b4f7ee30d3a485524d diff --git a/test/xmas.c b/test/xmas.c index c9f338c0..2ea08aef 100644 --- a/test/xmas.c +++ b/test/xmas.c @@ -92,7 +92,7 @@ /******************************************************************************/ /* - * $Id: xmas.c,v 1.19 2002/06/29 23:32:18 tom Exp $ + * $Id: xmas.c,v 1.20 2005/04/16 16:34:38 tom Exp $ */ #include @@ -156,7 +156,7 @@ set_color(WINDOW *win, chtype color) static bool *pairs; int n = (color + 1); if (pairs == 0) - pairs = (bool *) calloc(COLORS + 1, sizeof(bool)); + pairs = (bool *) calloc((unsigned) (COLORS + 1), sizeof(bool)); if (!pairs[n]) { init_pair(n, color, my_bg); pairs[n] = TRUE;