fix some build errors about isnan and isinf, not used std namespace

This commit is contained in:
LINxiansheng
2022-03-21 14:36:42 +08:00
committed by LINxiansheng
parent f0fbf805ec
commit 4a8e137bf2

View File

@ -650,7 +650,7 @@ int ObJsonBin::serialize_json_value(ObJsonNode *json_tree, ObJsonBuffer &result)
case ObJsonNodeType::J_DOUBLE: {
const ObJsonDouble *d = static_cast<const ObJsonDouble*>(json_tree);
double value = d->value();
if (isnan(value) || isinf(value)) {
if (std::isnan(value) || std::isinf(value)) {
ret = OB_INVALID_NUMERIC;
LOG_WARN("invalid double value", K(ret), K(value));
} else if (OB_FAIL(result.append(reinterpret_cast<const char*>(&value), sizeof(double)))) {