texlive[55807] Build/source/texk/dvipdfm-x: Add missing assignment in

commits+kakuto at tug.org commits+kakuto at tug.org
Sat Jul 11 05:44:08 CEST 2020


Revision: 55807
          http://tug.org/svn/texlive?view=revision&revision=55807
Author:   kakuto
Date:     2020-07-11 05:44:08 +0200 (Sat, 11 Jul 2020)
Log Message:
-----------
Add missing assignment in pdf_color_compare(). (S. Hirata)

Modified Paths:
--------------
    trunk/Build/source/texk/dvipdfm-x/ChangeLog
    trunk/Build/source/texk/dvipdfm-x/pdfcolor.c

Modified: trunk/Build/source/texk/dvipdfm-x/ChangeLog
===================================================================
--- trunk/Build/source/texk/dvipdfm-x/ChangeLog	2020-07-10 23:53:24 UTC (rev 55806)
+++ trunk/Build/source/texk/dvipdfm-x/ChangeLog	2020-07-11 03:44:08 UTC (rev 55807)
@@ -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 at gmail.com>

Modified: trunk/Build/source/texk/dvipdfm-x/pdfcolor.c
===================================================================
--- trunk/Build/source/texk/dvipdfm-x/pdfcolor.c	2020-07-10 23:53:24 UTC (rev 55806)
+++ trunk/Build/source/texk/dvipdfm-x/pdfcolor.c	2020-07-11 03:44:08 UTC (rev 55807)
@@ -407,10 +407,11 @@
     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);
 



More information about the tex-live-commits mailing list.