Skip to content

Commit 4d9aa42

Browse files
committed
Fixed type that sscanf didn't like for %x
1 parent 4f57c71 commit 4d9aa42

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

fingerprintio.c

+1-1
Original file line numberDiff line numberDiff line change
@@ -139,7 +139,7 @@ static int read_entry(FILE* f, struct index_entry* *entry) {
139139
return DECODING_ERROR;
140140
}
141141
uint8_t* signature = &((*entry)->signatures->signatures[i].minhash[0]);
142-
int tmp;
142+
unsigned int tmp;
143143
for (unsigned int j = 0 ; j < SIGNATURE_LENGTH ; j++) {
144144
if (1 != sscanf(&(buffer[2 * j]), "%2x", &tmp)) {
145145
free_index_entry(*entry);

0 commit comments

Comments
 (0)