diff options
author | Vito Caputo <vcaputo@pengaru.com> | 2023-06-13 18:27:10 -0700 |
---|---|---|
committer | Vito Caputo <vcaputo@pengaru.com> | 2023-06-13 23:27:20 -0700 |
commit | 3e3032cfa044268cee76735823755db274025021 (patch) | |
tree | ead68726685be0e1b6fdccd5c78f132dfb093517 /src/modules/voronoi | |
parent | 2825d01bf16f8b22f8eb9b92b2c21a654c13e563 (diff) |
*: smattering of random small fixes to silence -Wall
I thought the build was already using -Wall but that seems to not
be the case, maybe got lost somewhere along the line or messed up
in configure.ac
After forcing a build with -Wall -Werror, these showed up.
Fixed up in the obvious way, nothing too scary.
Diffstat (limited to 'src/modules/voronoi')
-rw-r--r-- | src/modules/voronoi/v2f.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/modules/voronoi/v2f.h b/src/modules/voronoi/v2f.h index 8f51ee0..3cef962 100644 --- a/src/modules/voronoi/v2f.h +++ b/src/modules/voronoi/v2f.h @@ -281,8 +281,8 @@ static inline v2f_t * v2f_trilerp(v2f_t *res, const v2f_t *aaa, const v2f_t *aba static inline v2f_t _v2f_rand(const v2f_t *min, const v2f_t *max) { return (v2f_t){ - .x = min->x + (float)rand() * (1.f/RAND_MAX) * (max->x - min->x), - .y = min->y + (float)rand() * (1.f/RAND_MAX) * (max->y - min->y), + .x = min->x + (float)rand() * (1.f/(float)RAND_MAX) * (max->x - min->x), + .y = min->y + (float)rand() * (1.f/(float)RAND_MAX) * (max->y - min->y), }; } |