From f3646ee8d559655d609cfc1108a77dea360c933a Mon Sep 17 00:00:00 2001
From: Norbert Preining <norbert@preining.info>
Date: Wed, 13 Oct 2021 03:01:03 +0000
Subject: CTAN sync 202110130301

---
 macros/latex/contrib/l3kernel/l3color.dtx | 11 ++++++-----
 1 file changed, 6 insertions(+), 5 deletions(-)

(limited to 'macros/latex/contrib/l3kernel/l3color.dtx')

diff --git a/macros/latex/contrib/l3kernel/l3color.dtx b/macros/latex/contrib/l3kernel/l3color.dtx
index 81fbb36bc3..a43a2e1294 100644
--- a/macros/latex/contrib/l3kernel/l3color.dtx
+++ b/macros/latex/contrib/l3kernel/l3color.dtx
@@ -43,7 +43,7 @@
 %    }^^A
 % }
 %
-% \date{Released 2021-08-27}
+% \date{Released 2021-10-12}
 %
 % \maketitle
 %
@@ -2284,8 +2284,9 @@
       {
         \prg_replicate:nn {#1}
           { neg ~ 1.0 ~ add ~ #1 ~ -1 ~ roll ~ }
-        \int_eval:n { #2 + 4 } ~ 4 ~ roll
-        \prg_replicate:nn {#2} { ~ pop }
+        \int_eval:n { #2 + #1 } ~ #1 ~ roll
+        \prg_replicate:nn {#2} { ~ pop } ~
+        #1 ~ 1 ~ roll
       }
     \use:x
       {
@@ -2302,7 +2303,7 @@
                 { rgb }  { /DeviceRGB }
               }
           }
-          { \exp_not:V \l_@@_internal_tl }
+          { { \exp_not:V \l_@@_internal_tl } }
       }
   }
 \cs_new_protected:Npn \@@_model_devicen_transform:w
@@ -2330,7 +2331,7 @@
         \fp_compare:nNnF {#3} = \c_zero_fp
           {
             \int_eval:n { #1 - \l_@@_internal_int + #2 } ~ index ~
-              #3 ~ neg ~ mul ~ 1.0 ~ add ~ mul ~
+              -#3 ~ mul ~ 1.0 ~ add ~ mul ~
           }
         #2 ~ -1 ~ roll ~
       }
-- 
cgit v1.2.3

