summaryrefslogtreecommitdiff
path: root/Build
diff options
context:
space:
mode:
authorAkira Kakuto <kakuto@fuk.kindai.ac.jp>2020-07-11 03:44:08 +0000
committerAkira Kakuto <kakuto@fuk.kindai.ac.jp>2020-07-11 03:44:08 +0000
commit1fbf5234330d7157bf2ee3c2e082aaa53faff495 (patch)
treeabe117442a38698c956b654f0b347b439ccfc12f /Build
parent79ebcd37a733d2a92fc5216fb3f37335e6158ec7 (diff)
Add missing assignment in pdf_color_compare(). (S. Hirata)
git-svn-id: svn://tug.org/texlive/trunk@55807 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Build')
-rw-r--r--Build/source/texk/dvipdfm-x/ChangeLog2
-rw-r--r--Build/source/texk/dvipdfm-x/pdfcolor.c5
2 files changed, 5 insertions, 2 deletions
diff --git a/Build/source/texk/dvipdfm-x/ChangeLog b/Build/source/texk/dvipdfm-x/ChangeLog
index e4bd303297a..07e73ebceff 100644
--- a/Build/source/texk/dvipdfm-x/ChangeLog
+++ b/Build/source/texk/dvipdfm-x/ChangeLog
@@ -4,6 +4,8 @@
ExtGState can be manipulated with a dedicated stack.
Add new specials pdf:bxgstate and pdf:exgstate to push/pop
ExtGState into/from the stack.
+ * pdfcolor.c: Fix a bug that assignment was missing
+ in pdf_color_compare().
* configure.ac: Version 20200711.
2020-07-04 Shunsaku Hirata <shunsaku.hirata74@gmail.com>
diff --git a/Build/source/texk/dvipdfm-x/pdfcolor.c b/Build/source/texk/dvipdfm-x/pdfcolor.c
index 579a7e44d5f..a0f49834bdf 100644
--- a/Build/source/texk/dvipdfm-x/pdfcolor.c
+++ b/Build/source/texk/dvipdfm-x/pdfcolor.c
@@ -407,10 +407,11 @@ pdf_color_compare (const pdf_color *color1, const pdf_color *color2)
return -1;
}
- while (n--)
+ n = color1->num_components;
+ while (--n >= 0) {
if (color1->values[n] != color2->values[n])
return -1;
-
+ }
if (color1->spot_color_name && color2->spot_color_name)
return strcmp(color1->spot_color_name, color2->spot_color_name);