Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 7d3665f9 authored by Chia-I Wu's avatar Chia-I Wu Committed by Android (Google) Code Review
Browse files

Merge "surfaceflinger: fix z type in LayerVector::do_compare"

parents 81be9993 28194d83
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -37,8 +37,8 @@ int LayerVector::do_compare(const void* lhs, const void* rhs) const
    if (ls != rs)
        return (ls > rs) ? 1 : -1;

    uint32_t lz = l->getCurrentState().z;
    uint32_t rz = r->getCurrentState().z;
    int32_t lz = l->getCurrentState().z;
    int32_t rz = r->getCurrentState().z;
    if (lz != rz)
        return (lz > rz) ? 1 : -1;