commit | ad4df20dd62efe6db4993861cba2268bd3921c1a | [log] [tgz] |
---|---|---|
author | Behdad Esfahbod <behdad@behdad.org> | Tue Sep 14 07:11:33 2021 -0400 |
committer | Behdad Esfahbod <behdad@behdad.org> | Tue Sep 14 07:11:46 2021 -0400 |
tree | 70f709026d702934b6ac2674e876746f5b63d86e | |
parent | c5cc23a9b59c2c039a4838e5734741f63c7ae23f [diff] |
[style] Fix float conversion warning
diff --git a/src/hb-style.cc b/src/hb-style.cc index 35871de..9345c24 100644 --- a/src/hb-style.cc +++ b/src/hb-style.cc
@@ -49,13 +49,13 @@ static inline float _hb_angle_to_ratio (float a) { - return tanf (a * (M_PI / 180.f)); + return tanf (a * float (M_PI / 180.)); } #if 0 static inline float _hb_ratio_to_angle (float r) { - return atanf (r) * (180.f / M_PI); + return atanf (r) * float (180. / M_PI); } #endif