[latex3-commits] [latex3/latex3] main: Use `\fp_set_eq:NN` when setting fp var to one (0052df450)
github at latex-project.org
github at latex-project.org
Tue Mar 5 09:21:48 CET 2024
Repository : https://github.com/latex3/latex3
On branch : main
Link : https://github.com/latex3/latex3/commit/0052df450810737502e4a4424fd5cf9e415d192d
>---------------------------------------------------------------
commit 0052df450810737502e4a4424fd5cf9e415d192d
Author: Yukai Chou <muzimuzhi at gmail.com>
Date: Tue Mar 5 08:02:53 2024 +0800
Use `\fp_set_eq:NN` when setting fp var to one
>---------------------------------------------------------------
0052df450810737502e4a4424fd5cf9e415d192d
l3experimental/l3draw/l3draw-transforms.dtx | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/l3experimental/l3draw/l3draw-transforms.dtx b/l3experimental/l3draw/l3draw-transforms.dtx
index d9f72931a..613dbb778 100644
--- a/l3experimental/l3draw/l3draw-transforms.dtx
+++ b/l3experimental/l3draw/l3draw-transforms.dtx
@@ -110,10 +110,10 @@
% \begin{macrocode}
\cs_new_protected:Npn \draw_transform_matrix_reset:
{
- \fp_set:Nn \l_@@_matrix_a_fp { 1 }
+ \fp_set_eq:NN \l_@@_matrix_a_fp \c_one_fp
\fp_zero:N \l_@@_matrix_b_fp
\fp_zero:N \l_@@_matrix_c_fp
- \fp_set:Nn \l_@@_matrix_d_fp { 1 }
+ \fp_set_eq:NN \l_@@_matrix_d_fp \c_one_fp
\bool_set_false:N \l_@@_matrix_active_bool
}
\cs_new_protected:Npn \draw_transform_shift_reset:
More information about the latex3-commits
mailing list.