Bug 513681 - part 1 - fix a few warnings.r=joe,a=blocker

This commit is contained in:
Bobby Holley 2010-08-13 18:15:20 -04:00
Родитель 32137b497e
Коммит de880a0c4d
2 изменённых файлов: 2 добавлений и 2 удалений

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

@ -776,7 +776,7 @@ row_callback(png_structp png_ptr, png_bytep new_row,
if (decoder->mFrameIsHidden)
return;
if (row_num >= decoder->mFrameRect.height)
if (row_num >= (png_uint_32) decoder->mFrameRect.height)
return;
if (new_row) {

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

@ -960,7 +960,7 @@ NS_IMETHODIMP imgRequest::OnDataAvailable(nsIRequest *aRequest, nsISupports *ctx
/* now we have mimetype, so we can infer the image type that we want */
imageType = mContentType.EqualsLiteral(SVG_MIMETYPE) ?
imgIContainer::TYPE_VECTOR : imgIContainer::TYPE_RASTER;
(PRUint16) imgIContainer::TYPE_VECTOR : (PRUint16) imgIContainer::TYPE_RASTER;
/* set our mimetype as a property */
nsCOMPtr<nsISupportsCString> contentType(do_CreateInstance("@mozilla.org/supports-cstring;1"));