]> ncurses.scripts.mit.edu Git - ncurses.git/blobdiff - ncurses/base/lib_bkgd.c
ncurses 5.7 - patch 20110101
[ncurses.git] / ncurses / base / lib_bkgd.c
index 784da1974a61d57a6c3936e9087707959e924417..d07d8111dbe61889cde192edf4c20c79f6958b53 100644 (file)
@@ -36,7 +36,7 @@
 
 #include <curses.priv.h>
 
-MODULE_ID("$Id: lib_bkgd.c,v 1.41 2010/05/01 22:16:21 tom Exp $")
+MODULE_ID("$Id: lib_bkgd.c,v 1.42 2011/01/01 17:18:52 tom Exp $")
 
 /*
  * Set the window's background information.
@@ -90,7 +90,7 @@ wbkgrndset(WINDOW *win, const ARG_CH_T ch)
 
            win->_bkgd = (((tmp == EOF) ? ' ' : (chtype) tmp)
                          | (AttrOf(wch) & ALL_BUT_COLOR)
-                         | ColorPair(GET_WINDOW_PAIR(win)));
+                         | (chtype) ColorPair(GET_WINDOW_PAIR(win)));
        }
 #endif
     }