Skip to content

Commit

Permalink
chore(scanner): explicit cast to silence warning
Browse files Browse the repository at this point in the history
  • Loading branch information
danielpunkass authored Jan 22, 2024
1 parent 43e9578 commit 949b780
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/tag.h
Original file line number Diff line number Diff line change
Expand Up @@ -311,7 +311,7 @@ static Tag make_tag(TagType type, const char *name) {
Tag tag = new_tag();
tag.type = type;
if (type == CUSTOM) {
tag.custom_tag_name.len = strlen(name);
tag.custom_tag_name.len = (uint32_t)strlen(name);
tag.custom_tag_name.data =
(char *)calloc(1, sizeof(char) * (tag.custom_tag_name.len + 1));
strncpy(tag.custom_tag_name.data, name, tag.custom_tag_name.len);
Expand Down

0 comments on commit 949b780

Please sign in to comment.