diff options
author | Brad Smith <brad@comstyle.com> | 2014-12-16 10:16:33 +0200 |
---|---|---|
committer | Brad Smith <brad@comstyle.com> | 2014-12-16 10:16:33 +0200 |
commit | 7e3c90250d423aa203977801ddf34148c7fbd10f (patch) | |
tree | 842c106f277c8fc25649c5467a5163e2c2ae207a /src | |
parent | f311d1cad1828d5fb0aa8bc2ba55cb2a53fb7ff4 (diff) | |
download | xine-lib-7e3c90250d423aa203977801ddf34148c7fbd10f.tar.gz xine-lib-7e3c90250d423aa203977801ddf34148c7fbd10f.tar.bz2 |
Use correct absolute value function with floats and doubles
Diffstat (limited to 'src')
-rw-r--r-- | src/post/goom/tentacle3d.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/post/goom/tentacle3d.c b/src/post/goom/tentacle3d.c index e1e2157e7..8e99ad3b7 100644 --- a/src/post/goom/tentacle3d.c +++ b/src/post/goom/tentacle3d.c @@ -210,13 +210,13 @@ static void pretty_move (PluginInfo *goomInfo, float cycle, float *dist, float * tmp = cycle - (M_PI*2.0) * floor(cycle/(M_PI*2.0)); } - if (abs(tmp-fx_data->rot) > abs(tmp-(fx_data->rot+2.0*M_PI))) { + if (fabsf(tmp-fx_data->rot) > fabs(tmp-(fx_data->rot+2.0*M_PI))) { fx_data->rot = (tmp + 15.0f*(fx_data->rot+2*M_PI)) / 16.0f; if (fx_data->rot>2.0*M_PI) fx_data->rot -= 2.0*M_PI; *rotangle = fx_data->rot; } - else if (abs(tmp-fx_data->rot) > abs(tmp-(fx_data->rot-2.0*M_PI))) { + else if (fabsf(tmp-fx_data->rot) > fabs(tmp-(fx_data->rot-2.0*M_PI))) { fx_data->rot = (tmp + 15.0f*(fx_data->rot-2.0*M_PI)) / 16.0f; if (fx_data->rot<0.0f) fx_data->rot += 2.0*M_PI; |