Merge "Correct PatchCache comparison logic"

This commit is contained in:
Chris Craik
2013-02-16 03:36:28 +00:00
committed by Android (Google) Code Review

View File

@@ -51,10 +51,10 @@ int PatchCache::PatchDescription::compare(
if (deltaInt != 0) return deltaInt;
if (lhs.pixelWidth < rhs.pixelWidth) return -1;
if (lhs.pixelWidth > lhs.pixelWidth) return +1;
if (lhs.pixelWidth > rhs.pixelWidth) return +1;
if (lhs.pixelHeight < rhs.pixelHeight) return -1;
if (lhs.pixelHeight > lhs.pixelHeight) return +1;
if (lhs.pixelHeight > rhs.pixelHeight) return +1;
deltaInt = lhs.xCount - rhs.xCount;
if (deltaInt != 0) return deltaInt;