This is an automated email from the git hooks/post-receive script.

git pushed a commit to branch master
in repository terminology.

View the commit online.

commit 1d59f20e879907736c58280410df8d81c3621a00
Author: Boris Faure <[email protected]>
AuthorDate: Tue Sep 15 21:54:20 2026 +0200

    termpty: use DIV_ROUND_UP macro
---
 src/bin/termpty.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/bin/termpty.c b/src/bin/termpty.c
index 98852a1f..a74ee2d4 100644
--- a/src/bin/termpty.c
+++ b/src/bin/termpty.c
@@ -977,7 +977,7 @@ termpty_line_length(const Termcell *cells, ssize_t nb_cells)
     * test below still decides. */
    used = simd_rscan_nonzero((const unsigned char *)cells,
                              (size_t)nb_cells * sizeof(Termcell));
-   pos = (ssize_t)((used + sizeof(Termcell) - 1) / sizeof(Termcell));
+   pos = (ssize_t) DIV_ROUND_UP(used, sizeof(Termcell));
    if (pos > nb_cells) pos = nb_cells;
 
    for (pos = pos - 1; pos >= 0; pos--)

-- 
To stop receiving notification emails like this one, please contact
the administrator of this repository.

Reply via email to