Current-Users archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

"lint" brokenness



        Hello,

"lint" complains about "src/common/lib/libprop/prop_data.c" when I try
to build NetBSD/amd64:

/src/NetBSD-current/src/common/lib/libprop/prop_data.c(569): warning: integer 
constant out of range [252]
*** [prop_data.ln] Error code 1
1 error

I can however not see the problem:

                if (len == ULONG_MAX && errno == ERANGE)
                        return (true);

"len" is a "size_t" and "ULONG_MAX" should be in its range. "SIZE_T_MAX"
is actually defined to be "ULONG_MAX".

Why is lint complaining?

        Kind regards

-- 
Matthias Scheler                                  http://zhadum.org.uk/


Home | Main Index | Thread Index | Old Index