summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 7e905b5)
raw | patch | inline | side by side (parent: 7e905b5)
author | Florian Forster <octo@huhu.verplant.org> | |
Mon, 19 Jan 2009 12:05:23 +0000 (13:05 +0100) | ||
committer | Florian Forster <octo@huhu.verplant.org> | |
Mon, 19 Jan 2009 12:05:23 +0000 (13:05 +0100) |
Sagly, there's a bug in some versions of GCC/GNU libc which leads to LLONG_*
not being defined. We'll check the return value of strtoll for `>0' and `<0',
which should do the trick, too.
not being defined. We'll check the return value of strtoll for `>0' and `<0',
which should do the trick, too.
src/bind.c | patch | blob | history |
diff --git a/src/bind.c b/src/bind.c
index 1a06a4d5beb4d78d05acd01a3566faecc15471a8..e09da1927e71018438405176ca71f806ea33b023 100644 (file)
--- a/src/bind.c
+++ b/src/bind.c
xmlFree(str_ptr);
if (str_ptr == end_ptr || errno)
{
- if (errno && value == LLONG_MIN)
+ if (errno && (value < 0))
ERROR ("bind plugin: bind_xml_read_counter: strtoll failed with underflow.");
- else if (errno && value == LLONG_MAX)
+ else if (errno && (value > 0))
ERROR ("bind plugin: bind_xml_read_counter: strtoll failed with overflow.");
else
ERROR ("bind plugin: bind_xml_read_counter: strtoll failed.");