Merge "applypatch: Fix comparison of integers of different signs."