repo: rxvt-unicode-sixel action: commit revision: path_from: revision_from: f9af24340d262287aacb6569c6b3a998a7563828: path_to: revision_to:
commit f9af24340d262287aacb6569c6b3a998a7563828 Author: Marc LehmannDate: Thu Jun 7 20:32:58 2012 +0000 punish big endian machiones diff --git a/src/rxvtimg.C b/src/rxvtimg.C
--- a/src/rxvtimg.C
+++ b/src/rxvtimg.C
@@ -133,12 +133,12 @@ rxvt_img::new_from_pixbuf (rxvt_screen *s, GdkPixbuf *pb)
{
uint32_t v = *(uint32_t *)src; src += 4;
- if (ecb_little_endian ())
+ if (ecb_big_endian ())
v = ecb_bswap32 (v);
- v = ecb_rotr32 (v, 8);
+ v = ecb_rotl32 (v, 8);
- if (byte_order_mismatch)
+ if (!byte_order_mismatch)
v = ecb_bswap32 (v);
*dst++ = v;
-----END OF PAGE-----