From 28004f05df6700a30d8862c88588b74e34ca354f Mon Sep 17 00:00:00 2001 From: "bstell%ix.netcom.com" Date: Wed, 23 Jan 2002 15:07:15 +0000 Subject: [PATCH] bug 119042, crash when dividing 0 by 1 r=bstell@ix.netcom.com, sr/a=brendan@mozilla.org, --- gfx/src/x11shared/nsXFontAAScaledBitmap.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gfx/src/x11shared/nsXFontAAScaledBitmap.cpp b/gfx/src/x11shared/nsXFontAAScaledBitmap.cpp index 2f458057029..3e7629b465d 100644 --- a/gfx/src/x11shared/nsXFontAAScaledBitmap.cpp +++ b/gfx/src/x11shared/nsXFontAAScaledBitmap.cpp @@ -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();