Skip to content

Commit cf7ff4d

Browse files
committed
Fix -Wshorten-64-to-32 warning
1 parent 0d5026f commit cf7ff4d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

t/basic_lookup_t.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ void test_one_result(MMDB_s *mmdb,
3636
} else {
3737
// When looking up IPv4 addresses in a mixed DB the result will be
3838
// something like "::1.2.3.4", not just "1.2.3.4".
39-
int maxlen = strlen(expect) + 3;
39+
size_t maxlen = strlen(expect) + 3;
4040
real_expect = malloc(maxlen);
4141
if (!real_expect) {
4242
BAIL_OUT("could not allocate memory");

0 commit comments

Comments
 (0)