[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [Xen-devel] [PATCH] libxl: correct strtod error check
Signed-off-by: Matthew Daley <mattjd@xxxxxxxxx> --- 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 _______________________________________________ Xen-devel mailing list Xen-devel@xxxxxxxxxxxxx http://lists.xen.org/xen-devel
|
Lists.xenproject.org is hosted with RackSpace, monitoring our |