Commit fc40bf4d authored by Daniel Salzman's avatar Daniel Salzman

contrib: revert strtonum warning fix (caused by ccache+clang)

parent b83e4936
......@@ -75,16 +75,13 @@ inline static int uintmax_from_str(const char *src, uintmax_t *dest)
if (result != KNOT_EOK) { \
return result; \
} \
if (CHECK_MIN_##min(value, min) || value > (max)) { \
if (value < (min) || value > (max)) { \
return KNOT_ERANGE; \
} \
*dest = (type)value; \
return KNOT_EOK; \
}
#define CHECK_MIN_0(value, min) 0
#define CHECK_MIN_INT_MIN(value, min) (value) < (min)
inline static int str_to_int(const char *src, int *dest)
{
CONVERT(int, int, INT_MIN, INT_MAX, src, dest);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment