mirror of
https://gitlab.freedesktop.org/cairo/cairo.git
synced 2026-05-05 04:08:13 +02:00
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:
parent
be4ffa9df2
commit
ce3ad6f41e
1 changed files with 2 additions and 1 deletions
|
|
@ -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;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue