Add parens in order to make conditional correct.
authoragl@chromium.org <agl@chromium.org@2bbb7eff-a529-9590-31e7-b0007b416f81>
Tue, 5 Jan 2010 01:19:44 +0000 (01:19 +0000)
committeragl@chromium.org <agl@chromium.org@2bbb7eff-a529-9590-31e7-b0007b416f81>
Tue, 5 Jan 2010 01:19:44 +0000 (01:19 +0000)
I've been coding in Go too much and forgot that C is broken.

git-svn-id: http://skia.googlecode.com/svn/trunk@470 2bbb7eff-a529-9590-31e7-b0007b416f81

src/ports/SkFontHost_FreeType.cpp

index d4fdf74960833fc3c98a6b0086ff5b216a85c2f9..d5a48a6b4b22829bac4a4d702c1c5691195c5573 100644 (file)
@@ -376,7 +376,7 @@ SkScalerContext_FreeType::SkScalerContext_FreeType(const SkDescriptor* desc)
             break;
         }
 
-        if (fRec.fFlags & SkScalerContext::kEmbeddedBitmapText_Flag == 0)
+        if ((fRec.fFlags & SkScalerContext::kEmbeddedBitmapText_Flag) == 0)
             loadFlags |= FT_LOAD_NO_BITMAP;
 
         fLoadGlyphFlags = loadFlags;