From 6d171bd90cab959b084d3e35f810be8e54f5c573 Mon Sep 17 00:00:00 2001 From: Paweł Redman Date: Sat, 16 Dec 2017 23:03:07 +0000 Subject: Fix a warning. --- src/procgen.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src') 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_) -- cgit