Don't assume that sizeof(int) == sizeof(int32_t)
See https://github.com/dlbeer/quirc/pull/59#discussion_r320307589
This commit is contained in:
parent
f27a7c2c75
commit
74459b9f59
1 changed files with 1 additions and 1 deletions
|
@ -852,7 +852,7 @@ static void rotate_capstone(struct quirc_capstone *cap,
|
|||
struct quirc_point copy[4];
|
||||
int j;
|
||||
int best = 0;
|
||||
int best_score = INT32_MAX;
|
||||
int best_score = INT_MAX;
|
||||
|
||||
for (j = 0; j < 4; j++) {
|
||||
struct quirc_point *p = &cap->corners[j];
|
||||
|
|
Loading…
Reference in a new issue