From eeff0a4d4f0d0e3b86d42659ce3889d1e1238df5 Mon Sep 17 00:00:00 2001 From: Steven Robertson Date: Tue, 3 May 2011 16:15:16 -0400 Subject: [PATCH] Oh, missed some 'f' suffixes on numbers --- cuburn/code/variations.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/cuburn/code/variations.py b/cuburn/code/variations.py index bb8c1c1..becb16b 100644 --- a/cuburn/code/variations.py +++ b/cuburn/code/variations.py @@ -22,14 +22,14 @@ var(1, 'sinusoidal', """ """) var(2, 'spherical', """ - float r2 = w / (tx*tx + ty*ty + 1e-20); + float r2 = w / (tx*tx + ty*ty + 1e-20f); ox += tx * r2; oy += ty * r2; """) var(5, 'polar', """ ox += w * atan2f(tx, ty) * M_1_PI; - oy += w * (sqrtf(tx * tx + ty * ty) - 1.0); + oy += w * (sqrtf(tx * tx + ty * ty) - 1.0f); """)