Skip to content

Commit

Permalink
Avoid warning about implicit loss of precision in clang
Browse files Browse the repository at this point in the history
  • Loading branch information
TysonAndre committed Jul 3, 2021
1 parent 82c2052 commit 50b6c8d
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 50b6c8d

Please sign in to comment.