Skip to content

Commit

Permalink
fix(lab/7): typo (#40)
Browse files Browse the repository at this point in the history
  • Loading branch information
henry-y authored Jul 17, 2024
1 parent 4694db8 commit cc71482
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions docs/labs/0x07/tasks.md
Original file line number Diff line number Diff line change
Expand Up @@ -799,8 +799,8 @@ pub fn sys_brk(args: &SyscallArgs) -> usize {
} else {
Some(VirtAddr::new(args.arg0 as u64))
};
match brk(addr) {
Some(addr) => addr.as_u64() as usize,
match brk(new_heap_end) {
Some(new_heap_end) => new_heap_end.as_u64() as usize,
None => !0,
}
}
Expand Down

0 comments on commit cc71482

Please sign in to comment.