diff options
| author | Tatsuhiro Tsujikawa <tatsuhiro.t@gmail.com> | 2011-11-03 18:51:31 +0900 |
|---|---|---|
| committer | Tatsuhiro Tsujikawa <tatsuhiro.t@gmail.com> | 2011-11-03 18:51:31 +0900 |
| commit | 9bb914b76e61dfed6044afee529eb92344bbca7a (patch) | |
| tree | 016f9b4f6cdd1449398d05d6ce469b07463fa28c /src/HttpResponse.cc | |
| parent | 6ef91d60b34a2a93b397b6db4daabfe8017d31fb (diff) | |
Changed parse*Int functions so that it accepts iterators.
Diffstat (limited to 'src/HttpResponse.cc')
| -rw-r--r-- | src/HttpResponse.cc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/HttpResponse.cc b/src/HttpResponse.cc index d346a755..225dd156 100644 --- a/src/HttpResponse.cc +++ b/src/HttpResponse.cc @@ -342,7 +342,7 @@ bool parseMetalinkHttpLink(MetalinkHttpEntry& result, const std::string& s) } } else if(name == "pri") { int32_t priValue; - if(util::parseIntNoThrow(priValue, value)) { + if(util::parseIntNoThrow(priValue, value.begin(), value.end())) { if(1 <= priValue && priValue <= 999999) { result.pri = priValue; } |
