SHA256
1
0
forked from pool/cairo
cairo/cairo-xlib-endianness.patch
Dominique Leuenberger 9c4558f99d Accepting request 1002604 from GNOME:Next
GNOME 43.rc - let's get this into Staging to see what we break (e.g meson:test seems to be an issue already)

OBS-URL: https://build.opensuse.org/request/show/1002604
OBS-URL: https://build.opensuse.org/package/show/GNOME:Factory/cairo?expand=0&rev=152
2022-09-13 07:31:49 +00:00

18 lines
485 B
Diff

Index: cairo-1.17.6/src/cairo-xlib-render-compositor.c
===================================================================
--- cairo-1.17.6.orig/src/cairo-xlib-render-compositor.c
+++ cairo-1.17.6/src/cairo-xlib-render-compositor.c
@@ -1325,10 +1325,10 @@ _cairo_xlib_surface_add_glyph (cairo_xli
}
n = new;
d = (uint32_t *) data;
- do {
+ while (c--) {
*n++ = bswap_32 (*d);
d++;
- } while (--c);
+ }
data = (uint8_t *) new;
}
break;