Skip to content

Commit 4139124

Browse files
committed
- Fix unit test implicit conversion change of signedness warning.
1 parent c1ca1b0 commit 4139124

2 files changed

Lines changed: 2 additions & 1 deletion

File tree

CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
1616

1717
- TXT records with more than 6465 rdata elements, crashes simdzone parsing.
1818
Thanks to Qifan Zhang, Palo Alto Networks, for the report.
19+
- Fix unit test implicit conversion change of signedness warning.
1920

2021
## [0.2.5] - 2026-07-07
2122

tests/syntax.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1263,7 +1263,7 @@ void delimiters_overflow_txt(void** state)
12631263
options.default_class = ZONE_CLASS_IN;
12641264

12651265
/* Build the zone string */
1266-
zone_str_len = strlen(zone_start_part) + num_items * 2 + 1 /* newline */ +
1266+
zone_str_len = strlen(zone_start_part) + ((size_t)num_items) * 2 + 1 /* newline */ +
12671267
strlen(zone_end_part) + 1 /* zero */;
12681268
zone = malloc(zone_str_len);
12691269
assert_non_null(zone);

0 commit comments

Comments
 (0)