Fix a precedence error in an assert in the fontconfig host.

Review URL: http://codereview.appspot.com/90060


git-svn-id: http://skia.googlecode.com/svn/trunk@246 2bbb7eff-a529-9590-31e7-b0007b416f81
This commit is contained in:
deanm@chromium.org 2009-07-01 07:49:44 +00:00
Родитель a545a5598e
Коммит bff8e29eaf
1 изменённых файлов: 1 добавлений и 1 удалений

Просмотреть файл

@ -68,7 +68,7 @@ static SkTypeface::Style UniqueIdToStyle(unsigned uniqueid)
static unsigned FileIdAndStyleToUniqueId(unsigned fileid, static unsigned FileIdAndStyleToUniqueId(unsigned fileid,
SkTypeface::Style style) SkTypeface::Style style)
{ {
SkASSERT(style & 0xff == style); SkASSERT((style & 0xff) == style);
return (fileid << 8) | static_cast<int>(style); return (fileid << 8) | static_cast<int>(style);
} }