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 3cf547b commit 35446a3Copy full SHA for 35446a3
src/aero_kernel/src/drivers/drm/mod.rs
@@ -1093,8 +1093,8 @@ fn make_dmt_modes(max_width: u16, max_height: u16) -> Vec<DrmModeInfo> {
1093
1094
// Sort the modes by display size:
1095
result.sort_by(|e, f| {
1096
- (e.hdisplay * e.vdisplay)
1097
- .partial_cmp(&(f.hdisplay * f.vdisplay))
+ ((e.hdisplay as usize) * (e.vdisplay as usize))
+ .partial_cmp(&((f.hdisplay as usize) * (f.vdisplay as usize)))
1098
.unwrap() // unreachable
1099
});
1100
0 commit comments