Skip to content

Commit d19a5ae

Browse files
RestiosonFreax13
authored andcommitted
missed a cast :(
1 parent 6cd1a99 commit d19a5ae

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/structures/gdt.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -468,7 +468,7 @@ impl Descriptor {
468468
let iomap_limit = tss.iomap_base as u64 + iomap_size as u64 - 1;
469469
low.set_bits(
470470
0..16,
471-
cmp::max(mem::size_of::<TaskStateSegment>(), iomap_limit),
471+
cmp::max(mem::size_of::<TaskStateSegment>() as u64, iomap_limit),
472472
);
473473
// type (0b1001 = available 64-bit tss)
474474
low.set_bits(40..44, 0b1001);

0 commit comments

Comments
 (0)