summaryrefslogtreecommitdiff
blob: 9237f95978ef02331e5269790c5659c638187c14 (plain)
1
2
3
4
5
6
7
8
9
10
11
Don't typecast otherwise C++ will fail to match on some arches.

http://bugs.gentoo.org/84187

--- loadparts.cpp
+++ loadparts.cpp
@@ -247,3 +247,3 @@
             // concat next line(s)
-	    int bufsize = clamp(0U, sizeof(line)-l, sizeof(line)-1);
+	    int bufsize = clamp((size_t)0, sizeof(line)-l, sizeof(line)-1);
 	    fgets(&line[l-2], bufsize, fp);