Skip to content

Commit

Permalink
Fix error prone ComparisonOutOfRange in PersistentStringIndexer
Browse files Browse the repository at this point in the history
PiperOrigin-RevId: 544294153
Change-Id: Ia89d02a025dfafa213d68ea2110a79e5adccf79c
  • Loading branch information
hvadehra authored and copybara-github committed Jun 29, 2023
1 parent 05dea88 commit cafa3cb
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ public PersistentIndexMap(Path mapFile, Path journalFile, Clock clock) throws IO
@Override
protected boolean updateJournal() {
long time = clock.nanoTime();
if (SAVE_INTERVAL_NS == 0 || time > nextUpdate) {
if (SAVE_INTERVAL_NS == 0L || time > nextUpdate) {
nextUpdate = time + SAVE_INTERVAL_NS;
return true;
}
Expand Down

0 comments on commit cafa3cb

Please sign in to comment.