blob: ead10c90400b82eca46d70620715b860dad4c507 (
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
--- a/loadparts.cpp
+++ b/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);
|