Don't assume that sizeof(int) == sizeof(int32_t)

See https://github.com/dlbeer/quirc/pull/59#discussion_r320307589
This commit is contained in:
Alexandre Perrin 2019-09-25 10:57:38 +02:00
parent f27a7c2c75
commit 74459b9f59

View file

@ -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];