summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
Diffstat (limited to 'Swiften/Parser')
-rw-r--r--Swiften/Parser/StreamResumeParser.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/Swiften/Parser/StreamResumeParser.cpp b/Swiften/Parser/StreamResumeParser.cpp
index f54dcf0..cb1a61d 100644
--- a/Swiften/Parser/StreamResumeParser.cpp
+++ b/Swiften/Parser/StreamResumeParser.cpp
@@ -21,7 +21,7 @@ void StreamResumeParser::handleStartElement(const std::string&, const std::strin
boost::optional<std::string> handledStanzasCount = attributes.getAttributeValue("h");
if (handledStanzasCount) {
try {
- getElementGeneric()->setHandledStanzasCount(boost::lexical_cast<int>(*handledStanzasCount));
+ getElementGeneric()->setHandledStanzasCount(boost::lexical_cast<unsigned int>(*handledStanzasCount));
}
catch (const boost::bad_lexical_cast &) {
}