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 cfa2083 commit 411b42bCopy full SHA for 411b42b
src/structures/gdt.rs
@@ -497,7 +497,7 @@ impl Descriptor {
497
low.set_bits(16..40, ptr.get_bits(0..24));
498
low.set_bits(56..64, ptr.get_bits(24..32));
499
// limit (the `-1` is needed since the bound is inclusive)
500
- let iomap_limit = unsafe { (*tss).iomap_base } as u64 + iomap_size as u64;
+ let iomap_limit = u64::from(unsafe { (*tss).iomap_base }) + u64::from(iomap_size);
501
low.set_bits(
502
0..16,
503
cmp::max(mem::size_of::<TaskStateSegment>() as u64, iomap_limit) - 1,
0 commit comments