From dbce87cd81891701a54ff094dd3323bada40cd8f Mon Sep 17 00:00:00 2001 From: "pavlov%pavlov.net" Date: Sat, 25 Mar 2006 04:55:19 +0000 Subject: [PATCH] turns out you can't index in to an int git-svn-id: svn://10.0.0.236/trunk@192978 18797224-902f-48f8-a5cc-f745e15eee43 --- mozilla/modules/libpr0n/decoders/icon/nsIconDecoder.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mozilla/modules/libpr0n/decoders/icon/nsIconDecoder.cpp b/mozilla/modules/libpr0n/decoders/icon/nsIconDecoder.cpp index e910b1a69cc..13c288ec88e 100644 --- a/mozilla/modules/libpr0n/decoders/icon/nsIconDecoder.cpp +++ b/mozilla/modules/libpr0n/decoders/icon/nsIconDecoder.cpp @@ -155,7 +155,7 @@ NS_IMETHODIMP nsIconDecoder::WriteFrom(nsIInputStream *inStr, PRUint32 count, PR const PRUint8 r = *rowdata++; const PRUint8 g = *rowdata++; const PRUint8 b = *rowdata++; - const PRUint8 a = (format == gfxIFormats::RGB_A1) ? abpr[i>>3] : abpr[i]; + const PRUint8 a = (format == gfxIFormats::RGB_A1) ? adata[i>>3] : adata[i]; #ifdef IS_LITTLE_ENDIAN // BGRX *row++ = b;