[latex3-commits] [latex3/latex2e] develop: Use truncation for division in calc. of arg. spec. (91b0b617)

github at latex-project.org github at latex-project.org
Fri Dec 1 13:13:27 CET 2023


Repository : https://github.com/latex3/latex2e
On branch  : develop
Link       : https://github.com/latex3/latex2e/commit/91b0b6177fdb357a1965a7a48fb76bda597f1f9b

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

commit 91b0b6177fdb357a1965a7a48fb76bda597f1f9b
Author: Joseph Wright <joseph.wright at morningstar2.co.uk>
Date:   Wed Nov 29 07:40:25 2023 +0000

    Use truncation for division in calc. of arg. spec.


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

91b0b6177fdb357a1965a7a48fb76bda597f1f9b
 base/ltcmd.dtx | 6 +++++-
 1 file changed, 5 insertions(+), 1 deletion(-)

diff --git a/base/ltcmd.dtx b/base/ltcmd.dtx
index f9281cd1..9c9dbc97 100644
--- a/base/ltcmd.dtx
+++ b/base/ltcmd.dtx
@@ -2611,7 +2611,11 @@
           \token_if_protected_macro:NF #1 { expandable ~ } document~command:
         \iow_newline:
         \int_step_function:nN
-          { \tl_count:n { \cs_parameter_spec:N #1 } / 2 }
+          {
+            \int_div_truncate:nn
+              { \tl_count:n { \cs_parameter_spec:N #1 } }
+              { 2 }
+          }
           \@@_show_optimised_aux:N
         ->
         \use:e





More information about the latex3-commits mailing list.