summaryrefslogtreecommitdiff
path: root/games-arcade/holotz-castle/files/holotz-castle-1.3.14-gcc-11.patch
blob: 311c352731d8415d6a5dcd8279189751cba70d30 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
https://bugs.gentoo.org/739092
--- a/JLib/JLib/Util/JTextFile.cpp
+++ b/JLib/JLib/Util/JTextFile.cpp
@@ -145,7 +145,7 @@ bool JTextFile::FindNext(const s8 *str, bool jump)
   
   tmp = strstr(ptr, str);
 
-  if (tmp > 0)
+  if (tmp)
     ptr = tmp;
   else
   {
@@ -153,7 +153,7 @@ bool JTextFile::FindNext(const s8 *str, bool jump)
     {
       tmp = strstr(buff, str);
 
-      if (tmp > 0)
+      if (tmp)
         ptr = tmp;
       else
         return false;
@@ -233,7 +233,7 @@ bool JTextFile::ReadQuotedWord(s8 *str)
 	++ptr;
 	end = ptr;
 	
-	if (0 >= (end = strstr(ptr, "\"")))
+	if ((end = strstr(ptr, "\"")) == NULL)
 	{
 		// No hay comillas de cierre
 		ptr = org;