xwayland: fix signed to unsigned int casting error
This commit is contained in:
parent
7de2edb623
commit
340bfbd7f1
1 changed files with 2 additions and 2 deletions
|
@ -122,9 +122,9 @@ pub fn getConstraints(self: Self) View.Constraints {
|
||||||
.max_height = std.math.maxInt(u32),
|
.max_height = std.math.maxInt(u32),
|
||||||
};
|
};
|
||||||
return .{
|
return .{
|
||||||
.min_width = std.math.max(@intCast(u32, hints.min_width), View.min_size),
|
.min_width = @intCast(u32, std.math.max(hints.min_width, View.min_size)),
|
||||||
.max_width = if (hints.max_width > 0) @intCast(u32, hints.max_width) else std.math.maxInt(u32),
|
.max_width = if (hints.max_width > 0) @intCast(u32, hints.max_width) else std.math.maxInt(u32),
|
||||||
.min_height = std.math.max(@intCast(u32, hints.min_height), View.min_size),
|
.min_height = @intCast(u32, std.math.max(hints.min_height, View.min_size)),
|
||||||
.max_height = if (hints.max_height > 0) @intCast(u32, hints.max_height) else std.math.maxInt(u32),
|
.max_height = if (hints.max_height > 0) @intCast(u32, hints.max_height) else std.math.maxInt(u32),
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue