Skip to content

Commit 4151906

Browse files
authored
deimos.ncurses.curses: Fix cchar_t definition (#44)
1 parent f638ff4 commit 4151906

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

source/deimos/ncurses/curses.d

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -69,8 +69,8 @@ extern (C) @nogc nothrow
6969
{
7070

7171
/* types */
72-
alias c_ulong chtype;
73-
alias c_ulong mmask_t;
72+
alias uint chtype;
73+
alias uint mmask_t;
7474
alias chtype attr_t;
7575
alias int OPTIONS;
7676
alias void SCREEN;
@@ -307,7 +307,9 @@ struct cchar_t
307307
{
308308
attr_t attr;
309309
wchar_t[CCHARW_MAX] chars;
310+
int ext_color;
310311
}
312+
static assert (cchar_t.sizeof == 28);
311313

312314
struct WINDOW
313315
{

0 commit comments

Comments
 (0)