зеркало из https://github.com/mozilla/pjs.git
Unhork binhex decoder by undoing the ifdef-reversal. Bug 220611, r=biesi,
sr=darin
This commit is contained in:
Родитель
f651435ba8
Коммит
3857f5d808
|
@ -414,9 +414,11 @@ nsresult nsBinHexDecoder::ProcessNextChunk(nsIRequest * aRequest, nsISupports *
|
|||
|
||||
/* handle decoded characters -- run length encoding (rle) detection */
|
||||
|
||||
#if defined(XP_MAC) || defined(XP_MACOSX)
|
||||
mOctetBuf.val = PR_ntohl(mOctetBuf.val);
|
||||
#endif
|
||||
// We put decoded chars into mOctetBuf.val in order from high to low (via
|
||||
// bitshifting, above). But we want to byte-address them, so we want the
|
||||
// first byte to correspond to the high byte. In other words, we want
|
||||
// these bytes to be in network order.
|
||||
mOctetBuf.val = PR_htonl(mOctetBuf.val);
|
||||
|
||||
for (octetpos = 0; octetpos < mDonePos; ++octetpos)
|
||||
{
|
||||
|
|
Загрузка…
Ссылка в новой задаче