Use a byte char instead of casting

This commit is contained in:
Philipp Oppermann
2015-10-27 20:48:14 +01:00
parent c36a3d19d2
commit e439e9eb5d

View File

@@ -91,7 +91,7 @@ impl Writer {
fn clear_row(&mut self, row: usize) {
let blank = ScreenChar {
ascii_character: ' ' as u8,
ascii_character: b' ',
color_code: self.color_code,
};
self.buffer().chars[row] = [blank; BUFFER_WIDTH];