Skip to content

Commit

Permalink
Merge pull request twitter#630 from twitter/clang-warning
Browse files Browse the repository at this point in the history
Avoid warning about implicit loss of precision in clang
  • Loading branch information
TysonAndre authored Jul 3, 2021
2 parents 82c2052 + 50b6c8d commit 85f9875
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/nc_conf.c
Original file line number Diff line number Diff line change
Expand Up @@ -1745,7 +1745,7 @@ conf_set_hash(struct conf *cf, const struct command *cmd, void *conf)
continue;
}

*hp = hash - hash_strings;
*hp = (hash_type_t)(hash - hash_strings);

return CONF_OK;
}
Expand Down Expand Up @@ -1774,7 +1774,7 @@ conf_set_distribution(struct conf *cf, const struct command *cmd, void *conf)
continue;
}

*dp = dist - dist_strings;
*dp = (dist_type_t)(dist - dist_strings);

return CONF_OK;
}
Expand Down

0 comments on commit 85f9875

Please sign in to comment.