Skip to content

Commit

Permalink
🐛 控制台最后一行输出错误
Browse files Browse the repository at this point in the history
  • Loading branch information
StevenBaby committed Jan 17, 2023
1 parent f1cc207 commit 2ba4c0f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/kernel/console.c
Original file line number Diff line number Diff line change
Expand Up @@ -112,7 +112,7 @@ static void scroll_up()
screen = MEM_BASE;
}

u32 *ptr = (u32 *)(screen + SCR_SIZE);
u16 *ptr = (u16 *)(screen + SCR_SIZE);
for (size_t i = 0; i < WIDTH; i++)
{
*ptr++ = erase;
Expand Down

0 comments on commit 2ba4c0f

Please sign in to comment.