bug 119042, crash when dividing 0 by 1

r=bstell@ix.netcom.com, sr/a=brendan@mozilla.org,
This commit is contained in:
bstell%ix.netcom.com 2002-01-23 15:07:15 +00:00
Родитель e036a5db20
Коммит d16b06dced
1 изменённых файлов: 1 добавлений и 1 удалений

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

@ -998,7 +998,7 @@ scale_imageAntiJag(nsAntiAliasedGlyph *aSrc, nsAntiAliasedGlyph *aDst)
NS_ASSERTION(aDst->GetBorder()==0, "non zero dest border not supported");
return;
}
int expand = (((dst_width<<8)/aSrc->GetWidth())+255)>>8;
PRUint32 expand = (((dst_width<<8)/aSrc->GetWidth())+255)>>8;
PRUint32 src_width = aSrc->GetWidth();
PRUint32 src_height = aSrc->GetHeight();