]> git.tdb.fi Git - libs/net.git/blobdiff - source/http/response.cpp
Use string::size_type to store string offsets
[libs/net.git] / source / http / response.cpp
index 85e279f579a35cd08a6e4ad446ef1836771a282e..739a20f3da2fa2ba6503e13b216ba842b9403ec3 100644 (file)
@@ -23,7 +23,7 @@ Response Response::parse(const string &str)
 {
        Response result;
 
-       unsigned lf = str.find('\n');
+       string::size_type lf = str.find('\n');
        vector<string> parts = split(str.substr(0, lf), ' ', 2);
        if(parts.size()<2)
                throw invalid_argument("Response::parse");