Skip to content

Commit cafa3cb

Browse files
hvadehracopybara-github
authored andcommitted
Fix error prone ComparisonOutOfRange in PersistentStringIndexer
PiperOrigin-RevId: 544294153 Change-Id: Ia89d02a025dfafa213d68ea2110a79e5adccf79c
1 parent 05dea88 commit cafa3cb

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/main/java/com/google/devtools/build/lib/actions/cache/PersistentStringIndexer.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,7 @@ public PersistentIndexMap(Path mapFile, Path journalFile, Clock clock) throws IO
6565
@Override
6666
protected boolean updateJournal() {
6767
long time = clock.nanoTime();
68-
if (SAVE_INTERVAL_NS == 0 || time > nextUpdate) {
68+
if (SAVE_INTERVAL_NS == 0L || time > nextUpdate) {
6969
nextUpdate = time + SAVE_INTERVAL_NS;
7070
return true;
7171
}

0 commit comments

Comments
 (0)