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

Commit e900bb06 authored by TreeHugger Robot's avatar TreeHugger Robot Committed by Android (Google) Code Review
Browse files

Merge "Fix signedness issue in LayerProtoParser"

parents 7d3665f9 83f8e4d9
Loading
Loading
Loading
Loading
+5 −3
Original line number Diff line number Diff line
@@ -29,9 +29,11 @@ bool sortLayers(const LayerProtoParser::Layer* lhs, const LayerProtoParser::Laye
    uint32_t rs = rhs->layerStack;
    if (ls != rs) return ls < rs;

    uint32_t lz = lhs->z;
    uint32_t rz = rhs->z;
    if (lz != rz) return lz < rz;
    int32_t lz = lhs->z;
    int32_t rz = rhs->z;
    if (lz != rz) {
        return (lz > rz) ? 1 : -1;
    }

    return lhs->id < rhs->id;
}