We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 6cd1a99 commit d19a5aeCopy full SHA for d19a5ae
src/structures/gdt.rs
@@ -468,7 +468,7 @@ impl Descriptor {
468
let iomap_limit = tss.iomap_base as u64 + iomap_size as u64 - 1;
469
low.set_bits(
470
0..16,
471
- cmp::max(mem::size_of::<TaskStateSegment>(), iomap_limit),
+ cmp::max(mem::size_of::<TaskStateSegment>() as u64, iomap_limit),
472
);
473
// type (0b1001 = available 64-bit tss)
474
low.set_bits(40..44, 0b1001);
0 commit comments