diff options
author | Paweł Redman <pawel.redman@gmail.com> | 2017-12-16 23:03:07 +0000 |
---|---|---|
committer | Paweł Redman <pawel.redman@gmail.com> | 2017-12-16 23:03:07 +0000 |
commit | 6d171bd90cab959b084d3e35f810be8e54f5c573 (patch) | |
tree | e6a13c0ea28ae30e195bc1fcbdc3ac7c742cec82 /src | |
parent | 3d69504213f9788ced2ec18ceba9175b1ccb84dc (diff) |
Fix a warning.
Diffstat (limited to 'src')
-rw-r--r-- | src/procgen.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/procgen.cpp b/src/procgen.cpp index a57ed3a..5fab153 100644 --- a/src/procgen.cpp +++ b/src/procgen.cpp @@ -36,7 +36,7 @@ v2f_t prng_t::unit_vec2(void) { float t; t = next_float() * 2.0f * M_PI; - return {cos(t), sin(t)}; + return {cosf(t), sinf(t)}; } void perlin_noise_t::generate(prng_t *prng, size_t size_) |