* [PATCH] libxl: correct strtod error check
@ 2013-11-08 0:32 Matthew Daley
2013-11-11 16:25 ` Ian Campbell
0 siblings, 1 reply; 2+ messages in thread
From: Matthew Daley @ 2013-11-08 0:32 UTC (permalink / raw)
To: xen-devel
Cc: xen-devel, Matthew Daley, Ian Jackson, Ian Campbell,
Stefano Stabellini
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
^ permalink raw reply related [flat|nested] 2+ messages in thread
* Re: [PATCH] libxl: correct strtod error check
2013-11-08 0:32 [PATCH] libxl: correct strtod error check Matthew Daley
@ 2013-11-11 16:25 ` Ian Campbell
0 siblings, 0 replies; 2+ messages in thread
From: Ian Campbell @ 2013-11-11 16:25 UTC (permalink / raw)
To: Matthew Daley; +Cc: xen-devel, xen-devel, Ian Jackson, Stefano Stabellini
On Fri, 2013-11-08 at 13:32 +1300, Matthew Daley wrote:
> Signed-off-by: Matthew Daley <mattjd@gmail.com>
acked + applied. thanks.
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2013-11-11 16:25 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-11-08 0:32 [PATCH] libxl: correct strtod error check Matthew Daley
2013-11-11 16:25 ` Ian Campbell
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).