projects
/
platform
/
upstream
/
pixman.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
f9c91ee
)
Qualify the static variables in pixman_f_transform_invert() with the const keyword.
author
Sebastian Bauer
<mail@sebastianbauer.info>
Tue, 3 Jul 2012 09:55:14 +0000
(
05:55
-0400)
committer
Sø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
patch
|
blob
|
history
diff --git
a/pixman/pixman-matrix.c
b/pixman/pixman-matrix.c
index
8d0d973
..
6d215ff
100644
(file)
--- 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++)