diff options
author | Tavian Barnes <tavianator@tavianator.com> | 2022-03-27 18:36:14 -0400 |
---|---|---|
committer | Tavian Barnes <tavianator@tavianator.com> | 2022-03-27 18:36:14 -0400 |
commit | 2d5b15ea68bf4b09afd2374660c22171f8ca3e52 (patch) | |
tree | 0b8a70a3111f349eb8a3fa320c45b726a6e34222 /parse.c | |
parent | c04ed01f5c008733c4d4575b888e1c40a8797e24 (diff) | |
download | bfs-2d5b15ea68bf4b09afd2374660c22171f8ca3e52.tar.xz |
opt: Use floats consistently for probabilities and costs
Diffstat (limited to 'parse.c')
-rw-r--r-- | parse.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -2672,12 +2672,12 @@ static struct bfs_expr *parse_type(struct parser_state *state, int x, int arg2) } unsigned int types = 0; - double probability = 0.0; + float probability = 0.0; const char *c = expr->argv[1]; while (true) { enum bfs_type type; - double type_prob; + float type_prob; switch (*c) { case 'b': |