summaryrefslogtreecommitdiff
path: root/apps
diff options
context:
space:
mode:
authorRalph Giles <giles@ghostscript.com>2009-02-17 07:57:13 +0100
committerRalph Giles <giles@ghostscript.com>2009-02-17 07:57:13 +0100
commitf8cc2bdb6d73a770e3f94cf1f183eb96bb4f18d4 (patch)
treed8ba01d4b308ba39be3bd942e50702de0d4565ac /apps
parent72388ba32965c51a424836f8daad70c156b378d6 (diff)
downloadmupdf-f8cc2bdb6d73a770e3f94cf1f183eb96bb4f18d4.tar.xz
Remove a spurious restrict in cast.
As far as I can tell, restrict only matters on the declaration side and doesn't mean anything in a cast. Unlike const. Flagged by Coverity.
Diffstat (limited to 'apps')
-rw-r--r--apps/unix/ximage.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/apps/unix/ximage.c b/apps/unix/ximage.c
index f1429e62..2dd0abc4 100644
--- a/apps/unix/ximage.c
+++ b/apps/unix/ximage.c
@@ -448,8 +448,8 @@ static void
ximage_convert_argb8888(PARAMS)
{
int x, y;
- unsigned * restrict s = (unsigned * restrict )src;
- unsigned * restrict d = (unsigned * restrict )dst;
+ unsigned * restrict s = (unsigned *)src;
+ unsigned * restrict d = (unsigned *)dst;
for (y = 0; y < h; y++) {
for (x = 0; x < w; x++) {
d[x] = s[x];