summaryrefslogtreecommitdiffstats
path: root/parse.cxx
diff options
context:
space:
mode:
authorfche <fche>2005-07-11 19:58:00 +0000
committerfche <fche>2005-07-11 19:58:00 +0000
commit3f43362a3e5b1e800819d13e3068328e24589495 (patch)
tree9ca909a6e034ee0ac748c558ef68e584d382ba6f /parse.cxx
parent24a0bfe975384f1b43ecd64fa86f292db0263b31 (diff)
downloadsystemtap-steved-3f43362a3e5b1e800819d13e3068328e24589495.tar.gz
systemtap-steved-3f43362a3e5b1e800819d13e3068328e24589495.tar.xz
systemtap-steved-3f43362a3e5b1e800819d13e3068328e24589495.zip
2005-07-11 Frank Ch. Eigler <fche@redhat.com>
* parse.cxx (parse_literal): Compile cleanly on 64-bit host. * staptree.cxx (deep_copy_visitor::visit_if_statement): Don't freak on a null if_statement.elseblock.
Diffstat (limited to 'parse.cxx')
-rw-r--r--parse.cxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/parse.cxx b/parse.cxx
index bcf634e6..5d09a657 100644
--- a/parse.cxx
+++ b/parse.cxx
@@ -732,7 +732,7 @@ parser::parse_literal ()
errno = 0;
long long value = strtoll (startp, & endp, 0);
if (errno == ERANGE || errno == EINVAL || *endp != '\0'
- || value > ULONG_MAX || value < LONG_MIN)
+ || value > 4294967295LL || value < (-2147483647LL-1))
throw parse_error ("number invalid or out of range");
long value2 = (long) value;