Bug 791953 Fix lossy conversion warning in gfxFont.h r=jfkthame
authorMasayuki Nakano <masayuki@d-toybox.com>
Mon, 01 Oct 2012 19:32:31 +0900
changeset 108734 6727fcb410250a218822a9be2b69cd95d3debfc7
parent 108733 84e28049280dd8a1a93c271446a69f6012db5029
child 108735 c7df097666149a619075bcd0e38efe1b97dd7e72
push id15654
push usermasayuki@d-toybox.com
push dateMon, 01 Oct 2012 10:33:04 +0000
treeherdermozilla-inbound@6727fcb41025 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersjfkthame
bugs791953
milestone18.0a1
first release with
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
last release without
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
Bug 791953 Fix lossy conversion warning in gfxFont.h r=jfkthame
gfx/thebes/gfxFont.h
--- a/gfx/thebes/gfxFont.h
+++ b/gfx/thebes/gfxFont.h
@@ -2075,17 +2075,17 @@ public:
         return mFlags;
     }
 
     bool IsRightToLeft() const {
         return (Flags() & gfxTextRunFactory::TEXT_IS_RTL) != 0;
     }
 
     float GetDirection() const {
-        return IsRightToLeft() ? -1.0 : 1.0;
+        return IsRightToLeft() ? -1.0f : 1.0f;
     }
 
     bool DisableLigatures() const {
         return (Flags() & gfxTextRunFactory::TEXT_DISABLE_OPTIONAL_LIGATURES) != 0;
     }
 
     bool TextIs8Bit() const {
         return (Flags() & gfxTextRunFactory::TEXT_IS_8BIT) != 0;