Skip to content

Commit 027ad7b

Browse files
committed
missed a cast :(
1 parent 7d2fa06 commit 027ad7b

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
@@ -333,7 +333,7 @@ impl Descriptor {
333333
let iomap_limit = tss.iomap_base as u64 + iomap_size as u64 - 1;
334334
low.set_bits(
335335
0..16,
336-
cmp::max(mem::size_of::<TaskStateSegment>(), iomap_limit),
336+
cmp::max(mem::size_of::<TaskStateSegment>() as u64, iomap_limit),
337337
);
338338
// type (0b1001 = available 64-bit tss)
339339
low.set_bits(40..44, 0b1001);

0 commit comments

Comments
 (0)