Skip to content

Commit 465f8fc

Browse files
fogtin0toose
authored andcommitted
fix(uhyve): sign fix for exit hypercall
1 parent eb0e825 commit 465f8fc

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/syscalls/interfaces/uhyve.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ fn data_addr<T>(data: &T) -> u64 {
3131
#[inline]
3232
fn hypercall_data(hypercall: &Hypercall<'_>) -> u64 {
3333
match hypercall {
34-
Hypercall::Exit(exit_code) => u64::try_from(*exit_code).unwrap(),
34+
Hypercall::Exit(exit_code) => (*exit_code) as u64,
3535
Hypercall::FileClose(data) => data_addr(*data),
3636
Hypercall::FileLseek(data) => data_addr(*data),
3737
Hypercall::FileOpen(data) => data_addr(*data),

0 commit comments

Comments
 (0)