summaryrefslogtreecommitdiff
path: root/third_party/lcms/src/cmsalpha.c
diff options
context:
space:
mode:
authorLei Zhang <thestig@chromium.org>2018-04-13 20:38:37 +0000
committerChromium commit bot <commit-bot@chromium.org>2018-04-13 20:38:37 +0000
commitb71d24c1affe8648963ba5024b62e5dbf4479ae2 (patch)
treef7768f4484091b2f69905abc09316f3b8279b1d9 /third_party/lcms/src/cmsalpha.c
parentaf2ee2cc2e41709df7afc8f49f11ed2e8cf6dedf (diff)
downloadpdfium-chromium/3397.tar.xz
Patch lcms to mark data structures as const.chromium/3397
BUG=pdfium:1015 Change-Id: I6b49d4a63fa197b489f6ff2a6920b7e65bb1279d Reviewed-on: https://pdfium-review.googlesource.com/30672 Reviewed-by: Tom Sepez <tsepez@chromium.org> Commit-Queue: Lei Zhang <thestig@chromium.org>
Diffstat (limited to 'third_party/lcms/src/cmsalpha.c')
-rw-r--r--third_party/lcms/src/cmsalpha.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/third_party/lcms/src/cmsalpha.c b/third_party/lcms/src/cmsalpha.c
index 7d6aa345f4..566f5fe9b7 100644
--- a/third_party/lcms/src/cmsalpha.c
+++ b/third_party/lcms/src/cmsalpha.c
@@ -252,7 +252,7 @@ int FormatterPos(cmsUInt32Number frm)
static
cmsFormatterAlphaFn _cmsGetFormatterAlpha(cmsContext id, cmsUInt32Number in, cmsUInt32Number out)
{
-static cmsFormatterAlphaFn FormattersAlpha[5][5] = {
+static const cmsFormatterAlphaFn FormattersAlpha[5][5] = {
/* from 8 */ { copy8, from8to16, from8toHLF, from8toFLT, from8toDBL },
/* from 16*/ { from16to8, copy16, from16toHLF, from16toFLT, from16toDBL },