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 108744 6727fcb410250a218822a9be2b69cd95d3debfc7
parent 108743 84e28049280dd8a1a93c271446a69f6012db5029
child 108745 c7df097666149a619075bcd0e38efe1b97dd7e72
push idunknown
push userunknown
push dateunknown
reviewersjfkthame
bugs791953
milestone18.0a1
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;