Skip to content

Commit a96dda1

Browse files
committed
Allow menu_scroll.d to compile on 64-bit platforms.
1 parent d4a7dfe commit a96dda1

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

examples/menu_scroll.d

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -99,7 +99,7 @@ int main()
9999
}
100100

101101
void print_in_middle(WINDOW *win, int starty, int startx, int width, string strtemp, chtype color)
102-
{ int length, x, y;
102+
{ int x, y;
103103
float temp;
104104

105105
if(win == null)
@@ -112,7 +112,7 @@ void print_in_middle(WINDOW *win, int starty, int startx, int width, string strt
112112
if(width == 0)
113113
width = 80;
114114

115-
length = strtemp.length;
115+
auto length = strtemp.length;
116116
temp = (width - length)/ 2;
117117
x = startx + cast(int)temp;
118118
wattron(win, color);

0 commit comments

Comments
 (0)