Use Long.compare to compare longs

Fix potential int overflow in comparator.

Bug:24117229
Change-Id: I8095e19ff9b853dcf3530e1cabd8dc9d8e326b0a
1 file changed