diff options
author | Johannes Schickel | 2014-06-02 01:00:15 +0200 |
---|---|---|
committer | Johannes Schickel | 2014-06-02 01:00:15 +0200 |
commit | ec6f00ed1d9a27dd56bc06a723e72cfbdf4e0304 (patch) | |
tree | 8c7a96b8f8b747d5981b4a6feeb6bec0048cb95a /common | |
parent | 59d0874ca958c2ff12210f9f18956a01d8719e80 (diff) | |
download | scummvm-rg350-ec6f00ed1d9a27dd56bc06a723e72cfbdf4e0304.tar.gz scummvm-rg350-ec6f00ed1d9a27dd56bc06a723e72cfbdf4e0304.tar.bz2 scummvm-rg350-ec6f00ed1d9a27dd56bc06a723e72cfbdf4e0304.zip |
COMMON: Make Rad<->Deg conversion use float constants.
Since we take a float parameter and return a float value we will also just
work on float values all the way. This silences some float conversion
warnings.
Diffstat (limited to 'common')
-rw-r--r-- | common/math.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/common/math.h b/common/math.h index 04a0ba14fc..f91f7a2eec 100644 --- a/common/math.h +++ b/common/math.h @@ -108,11 +108,11 @@ inline int intLog2(uint32 v) { #endif inline float rad2deg(float rad) { - return rad * 180.0 / M_PI; + return rad * 180.0f / (float)M_PI; } inline float deg2rad(float deg) { - return deg * M_PI / 180.0; + return deg * (float)M_PI / 180.0f; } } // End of namespace Common |