Commit acc373cb authored by pavlov%pavlov.net's avatar pavlov%pavlov.net
Browse files

turns out you can't index in to an int

parent 1648e0ad
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -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;