summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRalph Giles <giles@ghostscript.com>2009-02-17 08:01:33 +0100
committerRalph Giles <giles@ghostscript.com>2009-02-17 08:01:33 +0100
commit2f54cd2414c1114d7f51ac2fc8d89f0b6b5278e8 (patch)
tree012cc0657cf47f3632c031bdd2415ce9e62a99e4
parent1971aaa107294c0b586cd6475760033f7e746543 (diff)
downloadmupdf-2f54cd2414c1114d7f51ac2fc8d89f0b6b5278e8.tar.xz
Propagate restrict type specifiers to other ximage_convert functions.
-rw-r--r--apps/unix/ximage.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/apps/unix/ximage.c b/apps/unix/ximage.c
index 885d8437..bdf245c7 100644
--- a/apps/unix/ximage.c
+++ b/apps/unix/ximage.c
@@ -463,8 +463,8 @@ static void
ximage_convert_bgra8888(PARAMS)
{
int x, y;
- unsigned *s = (unsigned *)src;
- unsigned *d = (unsigned *)dst;
+ unsigned * restrict s = (unsigned *)src;
+ unsigned * restrict d = (unsigned *)dst;
unsigned val;
for (y = 0; y < h; y++) {
for (x = 0; x < w; x++) {
@@ -493,8 +493,8 @@ static void
ximage_convert_abgr8888(PARAMS)
{
int x, y;
- unsigned *s = (unsigned *)src;
- unsigned *d = (unsigned *)dst;
+ unsigned * restrict s = (unsigned *)src;
+ unsigned * restrict d = (unsigned *)dst;
unsigned val;
for (y = 0; y < h; y++) {