Skip to content

Commit

Permalink
[Ozone/Wayland]Comma operator causes version skew to crash
Browse files Browse the repository at this point in the history
This should be a >= instead.

Change-Id: I14814657607a3ab80ef529b4eec40e9b63ea67e6
Bug: 1325042
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/3646330
Auto-Submit: Kramer Ge <fangzhoug@chromium.org>
Commit-Queue: Peter McNeeley <petermcneeley@chromium.org>
Commit-Queue: Maksim Sisov <msisov@igalia.com>
Commit-Queue: Kramer Ge <fangzhoug@chromium.org>
Reviewed-by: Peter McNeeley <petermcneeley@chromium.org>
Reviewed-by: Maksim Sisov <msisov@igalia.com>
Cr-Commit-Position: refs/heads/main@{#1003185}
  • Loading branch information
fangzhoug authored and Chromium LUCI CQ committed May 13, 2022
1 parent 949c61c commit 4989947
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ui/ozone/platform/wayland/host/wayland_surface.cc
Original file line number Diff line number Diff line change
Expand Up @@ -466,7 +466,7 @@ void WaylandSurface::ApplyPendingState() {

if (pending_state_.background_color != state_.background_color) {
DCHECK(GetAugmentedSurface());
if (augmented_surface_get_version(GetAugmentedSurface()),
if (augmented_surface_get_version(GetAugmentedSurface()) >=
static_cast<uint32_t>(
AUGMENTED_SURFACE_SET_BACKGROUND_COLOR_SINCE_VERSION)) {
wl_array color_data;
Expand Down

0 comments on commit 4989947

Please sign in to comment.