summaryrefslogtreecommitdiff
path: root/xpdf/xpdf-3.02-gfxColorMaxComps.patch
diff options
context:
space:
mode:
authorMichael Stahl <mst@openoffice.org>2012-08-02 12:10:45 +0200
committerPetr Mladek <pmladek@suse.cz>2012-08-02 15:38:30 +0200
commit9bc4a9bbe2735e369a672f87684e9a9a82754484 (patch)
treedd08912b646655108d5239feb33ab22e2588cfba /xpdf/xpdf-3.02-gfxColorMaxComps.patch
parent430074552d6450be5311e7a8ce6bf5643c56463c (diff)
xpdf: fix some warnings
Signed-off-by: Petr Mladek <pmladek@suse.cz>
Diffstat (limited to 'xpdf/xpdf-3.02-gfxColorMaxComps.patch')
-rw-r--r--xpdf/xpdf-3.02-gfxColorMaxComps.patch24
1 files changed, 24 insertions, 0 deletions
diff --git a/xpdf/xpdf-3.02-gfxColorMaxComps.patch b/xpdf/xpdf-3.02-gfxColorMaxComps.patch
new file mode 100644
index 000000000000..3f0870b4537e
--- /dev/null
+++ b/xpdf/xpdf-3.02-gfxColorMaxComps.patch
@@ -0,0 +1,24 @@
+--- misc/xpdf-3.02/xpdf/GfxState.cc 2007-02-27 23:05:52.000000000 +0100
++++ misc/build/xpdf-3.02/xpdf/GfxState.cc 2011-05-18 20:08:45.003807128 +0200
+@@ -2678,7 +2678,7 @@
+ double x[16], y[16];
+ Guint xi, yi;
+ GfxColorComp c[4][gfxColorMaxComps];
+- Guint ci[4];
++ Guint ci[gfxColorMaxComps];
+ GfxShadingBitBuf *bitBuf;
+ Object obj1, obj2;
+ int i, j;
+--- misc/xpdf-3.02/xpdf/GfxState.h 2007-02-27 23:05:52.000000000 +0100
++++ misc/build/xpdf-3.02/xpdf/GfxState.h 2011-05-18 20:13:26.973936566 +0200
+@@ -393,8 +393,8 @@
+
+ int nComps; // number of color components (1, 3, or 4)
+ GfxColorSpace *alt; // alternate color space
+- double rangeMin[4]; // min values for each component
+- double rangeMax[4]; // max values for each component
++ double rangeMin[gfxColorMaxComps]; // min values for each component
++ double rangeMax[gfxColorMaxComps]; // max values for each component
+ Ref iccProfileStream; // the ICC profile
+ };
+