Add #[repr(C)] to ScreenChar

This commit is contained in:
Philipp Oppermann
2015-10-25 15:38:08 +01:00
parent 68c0ab0d59
commit 34dd42a6fc

View File

@@ -111,6 +111,7 @@ impl ColorCode {
} }
#[derive(Clone, Copy)] #[derive(Clone, Copy)]
#[repr(C)]
struct ScreenChar { struct ScreenChar {
ascii_character: u8, ascii_character: u8,
color_code: ColorCode, color_code: ColorCode,