diff --git a/format.h b/format.h index d5971618..6877104a 100644 --- a/format.h +++ b/format.h @@ -181,9 +181,9 @@ inline int SignBit(double value) { _ecvt(value, 0, &dec, &sign); return sign; } -inline int isinf(double x) { return !_finite(x); } # undef snprintf # define snprintf _snprintf +# define isinf(x) (!_finite(x)) #endif template @@ -919,7 +919,7 @@ class BasicFormatter : public BasicWriter { template Arg(const T &value) : type(CUSTOM), formatter(0) { custom.value = &value; - custom.format = &BasicFormatter::FormatCustomArg; + custom.format = &BasicFormatter::FormatCustomArg; } ~Arg() {