Qualify the static variables in pixman_f_transform_invert() with the const keyword.
authorSebastian Bauer <mail@sebastianbauer.info>
Tue, 3 Jul 2012 09:55:14 +0000 (05:55 -0400)
committerSøren Sandmann Pedersen <ssp@redhat.com>
Sat, 7 Jul 2012 03:50:21 +0000 (23:50 -0400)
Their contents is not overwritten.

pixman/pixman-matrix.c

index 8d0d973..6d215ff 100644 (file)
@@ -471,8 +471,8 @@ pixman_f_transform_invert (struct pixman_f_transform *      dst,
 {
     double det;
     int i, j;
-    static int a[3] = { 2, 2, 1 };
-    static int b[3] = { 1, 0, 0 };
+    static const int a[3] = { 2, 2, 1 };
+    static const int b[3] = { 1, 0, 0 };
 
     det = 0;
     for (i = 0; i < 3; i++)