projects
/
ncurses.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
ncurses 5.9 - patch 20110820
[ncurses.git]
/
test
/
xmas.c
diff --git
a/test/xmas.c
b/test/xmas.c
index c1ffb3c71614d9de5529a10f338190c363c87216..fc0cc4cbd0e95307abcce03e020228b2825d4ad8 100644
(file)
--- a/
test/xmas.c
+++ b/
test/xmas.c
@@
-92,7
+92,7
@@
/******************************************************************************/
/*
/******************************************************************************/
/*
- * $Id: xmas.c,v 1.2
6 2010/05/01 18:29:5
0 tom Exp $
+ * $Id: xmas.c,v 1.2
7 2010/11/13 20:24:1
0 tom Exp $
*/
#include <test.priv.h>
*/
#include <test.priv.h>
@@
-154,11
+154,11
@@
static void
set_color(WINDOW *win, chtype color)
{
if (has_colors()) {
set_color(WINDOW *win, chtype color)
{
if (has_colors()) {
- int n = (color + 1);
+ int n = (
int) (
color + 1);
if (my_pairs == 0)
if (my_pairs == 0)
- my_pairs = typeCalloc(bool,
COLORS + 1
);
+ my_pairs = typeCalloc(bool,
(size_t) (COLORS + 1)
);
if (!my_pairs[n]) {
if (!my_pairs[n]) {
- init_pair(
n, color,
my_bg);
+ init_pair(
(short) n, (short) color, (short)
my_bg);
my_pairs[n] = TRUE;
}
wattroff(win, A_COLOR);
my_pairs[n] = TRUE;
}
wattroff(win, A_COLOR);