Fixing long compare.

Bug: 24117216
Change-Id: I32cbc333ff9a145e5b65e923af4dbd80ea035cb1
This commit is contained in:
Winson Chung
2015-12-15 10:27:04 -05:00
parent d6b78a330b
commit 16bc2a7f37

View File

@@ -572,7 +572,7 @@ public class TaskStack {
Collections.sort(tasks, new Comparator<Task>() {
@Override
public int compare(Task task, Task task2) {
return (int) (task.key.firstActiveTime - task2.key.firstActiveTime);
return Long.compare(task.key.firstActiveTime, task2.key.firstActiveTime);
}
});
// Create groups when sequential packages are the same