Skip to content

Commit effae8e

Browse files
committed
Fix minor portability issue in curses
1 parent 18afce4 commit effae8e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

demos/src/bin/curses.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -131,7 +131,7 @@ impl Target for Win {
131131
| (b / 85 & 0b000_000_11);
132132

133133
// Avoid the eight standard colors
134-
self.0.addch(COLOR_PAIR(col.max(8)));
134+
self.0.addch(COLOR_PAIR(col.max(8) as chtype));
135135
}
136136
Throughput { i: w, o: w }
137137
}

0 commit comments

Comments
 (0)