editors/ted: drop bogus > 0 to fix build with llvm22

This commit is contained in:
tb
2026-05-25 18:12:42 +00:00
parent 32fc084ed3
commit 86bb73692b
2 changed files with 17 additions and 1 deletions
+1 -1
View File
@@ -1,7 +1,7 @@
COMMENT = X11 based RTF editor
V = 2.17
DISTNAME = ted-$V
REVISION = 6
REVISION = 7
CATEGORIES = editors textproc print
HOMEPAGE = http://www.nllgg.nl/Ted/
SITES = ftp://ftp.nluug.nl/pub/editors/ted/
@@ -0,0 +1,16 @@
Fix build with llvm22
error: chained comparison 'X > Y > Z' does not behave the same as a mathematical expression [-Wparentheses]
Index: appFrame/appTree.c
--- appFrame/appTree.c.orig
+++ appFrame/appTree.c
@@ -356,7 +356,7 @@ static int appDrawTreeNode( TreeDocument * td,
}
if ( ( ! tn->tnParent || tn->tnIsOpen ) &&
- tn->tnChildCount > 0 > 0 )
+ tn->tnChildCount > 0 )
{
TreeNode * tl= tn->tnChildren[tn->tnChildCount-1];