Skip to content

Commit 2034334

Browse files
committedMay 15, 2020
Replaced u_int32_t with uint32_t
1 parent bc510b9 commit 2034334

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed
 

‎lsh.c

+2-2
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,7 @@ struct lsh* create_hash_tables(struct index* database) {
7171
for (unsigned int j = 0 ; j < database->entries[i]->signatures->n_signatures ; j++) {
7272
uint8_t* hash = database->entries[i]->signatures->signatures[j].minhash;
7373
for (unsigned int k = 0 ; k < N_BUCKETS ; k++) {
74-
u_int32_t index = get_minhash(hash, k) % tables->size;
74+
uint32_t index = get_minhash(hash, k) % tables->size;
7575
struct signature_list* tmp = new_signature_list(i, j, tables->buckets[k][index]);
7676
if (tmp == NULL) {
7777
free_hash_tables(tables);
@@ -91,7 +91,7 @@ int get_matches(struct lsh* tables, uint8_t* hash, struct signature_list* *list)
9191
int n = 0;
9292

9393
for (unsigned int i = 0 ; i < N_BUCKETS ; i++) {
94-
u_int32_t index = get_minhash(hash, i) % tables->size;
94+
uint32_t index = get_minhash(hash, i) % tables->size;
9595
struct signature_list* tmp = tables->buckets[i][index];
9696

9797
// Let's add all these matches to our list

0 commit comments

Comments
 (0)