diff options
author | Sebastian Bauer <mail@sebastianbauer.info> | 2012-07-03 05:55:14 -0400 |
---|---|---|
committer | Søren Sandmann Pedersen <ssp@redhat.com> | 2012-07-06 23:50:21 -0400 |
commit | d4aa82fb9148862904bb7ca33655ce8d571643b0 (patch) | |
tree | b32c92f9752f9aa2d8c7cb05f5eff9cb6282d17f | |
parent | f9c91ee2f27eaea68d8c3a130bf7d4bc0c860834 (diff) |
Qualify the static variables in pixman_f_transform_invert() with the const keyword.
Their contents is not overwritten.
-rw-r--r-- | pixman/pixman-matrix.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/pixman/pixman-matrix.c b/pixman/pixman-matrix.c index 8d0d9732..6d215ff1 100644 --- a/pixman/pixman-matrix.c +++ b/pixman/pixman-matrix.c @@ -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++) |