File: gcc-11.patch

package info (click to toggle)
cuneiform 1.1.0%2Bdfsg-13
  • links: PTS, VCS
  • area: non-free
  • in suites: forky, sid
  • size: 72,396 kB
  • sloc: ansic: 183,514; cpp: 101,929; sh: 38; makefile: 36
file content (23 lines) | stat: -rw-r--r-- 933 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
Author: Andreas Beckmann <anbe@debian.org>
Description: fix "ordered comparison of pointer with integer zero"

--- a/cuneiform_src/Kern/ced/sources/main/ced_func_rtf.cpp
+++ b/cuneiform_src/Kern/ced/sources/main/ced_func_rtf.cpp
@@ -212,7 +212,7 @@ Bool32	CEDPage::FormattedWriteRtf(const
     }
 */
     // write the text lines
-	for (;sect>0;sect=sect->next)
+	for (;sect;sect=sect->next)
 	{
 		if (!WriteRtfSection(rtf,sect)) goto WRITE_END; //write section properties
 		//	int sectNum=0;
@@ -897,7 +897,7 @@ Bool WriteRtfCharFmt(struct StrRtfOut fa
 //    if (curChar->fontNum>=rtf->page->fontsUsed || (prevChar&&prevChar->fontNum>=rtf->page->fontsUsed)) return TRUE;
 
     // extract value for comparison
-    if (prevChar>0) {
+    if (prevChar) {
 //       lstrcpy(PrevTypeFace,TerFont[PrevFont].TypeFace);
        PrevFamily=rtf->table[rtf->page->GetFontByNum(prevChar->fontNum)];
        PrevStyle=prevChar->fontAttribs;