Skip to content

Commit 6b13ce3

Browse files
authored
Fix implicit integer conversion warning in LLVM (#156)
1 parent 523406b commit 6b13ce3

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/simhash.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ uint32_t SimHash(const uint32_t *data, size_t size)
2020
}
2121
}
2222

23-
const int threshold = size / 2;
23+
const size_t threshold = size / 2;
2424
uint32_t hash = 0;
2525
for (size_t i = 0; i < 32; i++) {
2626
const int b = v[i] > threshold ? 1 : 0;

0 commit comments

Comments
 (0)