Skip to content

Commit 949b780

Browse files
chore(scanner): explicit cast to silence warning
1 parent 43e9578 commit 949b780

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/tag.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -311,7 +311,7 @@ static Tag make_tag(TagType type, const char *name) {
311311
Tag tag = new_tag();
312312
tag.type = type;
313313
if (type == CUSTOM) {
314-
tag.custom_tag_name.len = strlen(name);
314+
tag.custom_tag_name.len = (uint32_t)strlen(name);
315315
tag.custom_tag_name.data =
316316
(char *)calloc(1, sizeof(char) * (tag.custom_tag_name.len + 1));
317317
strncpy(tag.custom_tag_name.data, name, tag.custom_tag_name.len);

0 commit comments

Comments
 (0)