summaryrefslogtreecommitdiff
path: root/games-util/dzip/files/dzip-clang16-build-fix.patch
blob: d16c6beb182ce7a55f8694e8dfe2a2d9f89c5791 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
Bug: https://bugs.gentoo.org/884923
--- a/delete.c
+++ b/delete.c
@@ -1,8 +1,8 @@
 #include "dzip.h"
 
-int intcmp (const uInt *arg1, const uInt *arg2)
+int intcmp (const void *arg1, const void *arg2)
 {
-	if (*arg1 < *arg2) return -1;
+	if (*(uInt *)arg1 < *(uInt *)arg2) return -1;
 	return 1;
 }