[latex3-commits] [git/LaTeX3-latex3-latex3] main: Use x expansion for \int_const:Nn (e91952cb5)

PhelypeOleinik phelype.oleinik at latex-project.org
Tue Jun 1 06:07:44 CEST 2021


Repository : https://github.com/latex3/latex3
On branch  : main
Link       : https://github.com/latex3/latex3/commit/e91952cb5e274b06e2f87f3f98ee1e755197c9b6

>---------------------------------------------------------------

commit e91952cb5e274b06e2f87f3f98ee1e755197c9b6
Author: PhelypeOleinik <phelype.oleinik at latex-project.org>
Date:   Tue Jun 1 01:07:44 2021 -0300

    Use x expansion for \int_const:Nn
    
    \int_const:Nn is used before some of the e-type emulation dependencies
    are defined (namely \token_if_protected_macro:NT), thus it does not work
    if the engine doesn't have \expanded yet.  This breaks building the
    LaTeX format when using new expl3 with old engines.


>---------------------------------------------------------------

e91952cb5e274b06e2f87f3f98ee1e755197c9b6
 l3kernel/l3int.dtx | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/l3kernel/l3int.dtx b/l3kernel/l3int.dtx
index b3063ecb3..aee782018 100644
--- a/l3kernel/l3int.dtx
+++ b/l3kernel/l3int.dtx
@@ -1295,7 +1295,7 @@
 %   enabled) this runs some checks that constants would fail.
 %    \begin{macrocode}
 \cs_new_protected:Npn \int_const:Nn #1#2
-  { \exp_args:Ne \@@_const:nN { \int_eval:n {#2} } #1 }
+  { \exp_args:Nx \@@_const:nN { \int_eval:n {#2} } #1 }
 \cs_new_protected:Npn \@@_const:nN #1#2
   {
     \int_compare:nNnTF {#1} < \c_zero_int





More information about the latex3-commits mailing list.