intmax_t may or may not be identical to int64_t, depending on
platform. On our platform, it is.
Signed-off-by: Adam C. Emerson <aemerson@redhat.com>
return false;
}
#ifdef PICOJSON_USE_INT64
+#pragma clang diagnostic push
+#pragma clang diagnostic ignored "-Wtautological-type-limit-compare"
{
errno = 0;
intmax_t ival = strtoimax(num_str.c_str(), &endp, 10);
return true;
}
}
+#pragma clang diagnostic pop
#endif
f = strtod(num_str.c_str(), &endp);
if (endp == num_str.c_str() + num_str.size()) {