On Wed, Oct 30, 2019 at 02:32:35AM +0100, Marcel Fabian Krüger wrote:
> This can be fixed by explicitly casting fit_class and fitness(r) to a
> signed type. A possible patch is attached.

A second attempt to attach the patch.

> 
> Best regards,
> 
> Marcel
> _______________________________________________
> dev-luatex mailing list
> dev-luatex@ntg.nl
> https://mailman.ntg.nl/mailman/listinfo/dev-luatex
>From 247e00154cdf44463308a3b0c228bfedabc3e6cf Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Marcel=20Fabian=20Kr=C3=BCger?= <t...@2krueger.de>
Date: Wed, 30 Oct 2019 02:04:04 +0100
Subject: [PATCH] Add explicit type conversions

---
 source/texk/web2c/luatexdir/tex/linebreak.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/source/texk/web2c/luatexdir/tex/linebreak.c 
b/source/texk/web2c/luatexdir/tex/linebreak.c
index d31a63236..cb56d21f8 100644
--- a/source/texk/web2c/luatexdir/tex/linebreak.c
+++ b/source/texk/web2c/luatexdir/tex/linebreak.c
@@ -1811,7 +1811,7 @@ static void ext_try_break(
                 else
                     d += final_hyphen_demerits;
             }
-            if (abs(fit_class - fitness(r)) > 1)
+            if (abs((integer) fit_class - (integer) fitness(r)) > 1)
                 d = d + adj_demerits;
         }
         if (tracing_paragraphs > 0) {
-- 
2.23.0

_______________________________________________
dev-luatex mailing list
dev-luatex@ntg.nl
https://mailman.ntg.nl/mailman/listinfo/dev-luatex

Reply via email to