Skip to content

Commit

Permalink
remove redundant code in _start (#438)
Browse files Browse the repository at this point in the history
"as *const u8" seems to be not needed
  • Loading branch information
liuchong authored and phil-opp committed Jun 13, 2018
1 parent 97ce179 commit 34f5733
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -275,7 +275,7 @@ static HELLO: &[u8] = b"Hello World!";

#[no_mangle]
pub extern "C" fn _start() -> ! {
let vga_buffer = 0xb8000 as *const u8 as *mut u8;
let vga_buffer = 0xb8000 as *mut u8;

for (i, &byte) in HELLO.iter().enumerate() {
unsafe {
Expand Down

0 comments on commit 34f5733

Please sign in to comment.