]> Dogcows Code - chaz/openbox/blobdiff - render/render.c
fix some warnings from -Wall
[chaz/openbox] / render / render.c
index e97f78559a7a21161a23b59d2e6dcb909cd4cc58..5b6cb95feddddb43b0c5f0b0957b9028c6b1f238 100644 (file)
@@ -375,9 +375,9 @@ void RrMinsize(RrAppearance *a, gint *w, gint *h)
 static void reverse_bits(gchar *c, gint n)
 {
     gint i;
-    for (i = 0; i < n; i++)
-        *c++ = (((*c * 0x0802UL & 0x22110UL) |
-                 (*c * 0x8020UL & 0x88440UL)) * 0x10101UL) >> 16;
+    for (i = 0; i < n; i++, *c++)
+        *c = (((*c * 0x0802UL & 0x22110UL) |
+               (*c * 0x8020UL & 0x88440UL)) * 0x10101UL) >> 16;
 }
 
 gboolean RrPixmapToRGBA(const RrInstance *inst,
This page took 0.019997 seconds and 4 git commands to generate.