xlib: Avoid multiple evaluations inside bswap_*() macro.

Fixes:
  Fonts are not readable if remote display to a machine with different
  endian.
  https://bugzilla.mozilla.org/show_bug.cgi?id=526977

Reported-and-tested-by: Ginn Chen <Ginn.Chen@Sun.COM>
This commit is contained in:
Chris Wilson 2010-03-31 08:21:17 +01:00
parent be4ffa9df2
commit ce3ad6f41e

View file

@ -4001,7 +4001,8 @@ _cairo_xlib_surface_add_glyph (Display *dpy,
n = new;
d = (uint32_t *) data;
do {
*n++ = bswap_32 (*d++);
*n++ = bswap_32 (*d);
d++;
} while (--c);
data = (uint8_t *) new;
}