[Pixman] [PATCH] Qualify the static variables in pixman_f_transform_invert() with the const keyword.
Sebastian Bauer
mail at sebastianbauer.info
Wed Jun 27 01:52:22 PDT 2012
Qualify the static variables in pixman_f_transform_invert() with the
const keyword.
Their contents is not overwritten.
---
pixman/pixman-matrix.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/pixman/pixman-matrix.c b/pixman/pixman-matrix.c
index 8d0d973..ef9b27e 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 };
+ const static int a[3] = { 2, 2, 1 };
+ const static int b[3] = { 1, 0, 0 };
det = 0;
for (i = 0; i < 3; i++)
--
1.7.10
More information about the Pixman
mailing list