Signed-off-by: Matthew Daley <mattjd@gmail.com> --- tools/libxl/libxl_json.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tools/libxl/libxl_json.c b/tools/libxl/libxl_json.c index c6ffb52..d2f7de8 100644 --- a/tools/libxl/libxl_json.c +++ b/tools/libxl/libxl_json.c @@ -486,7 +486,7 @@ static int json_callback_number(void *opaque, const char *s, libxl_yajl_length l if (is_decimal(s, len)) { double d = strtod(s, NULL); - if ((d == HUGE_VAL || d == HUGE_VAL) && errno == ERANGE) { + if ((d == HUGE_VALF || d == HUGE_VALL) && errno == ERANGE) { goto error; } -- 1.7.10.4