diff --git a/trunk/src/app/srs_app_http.cpp b/trunk/src/app/srs_app_http.cpp index 271cb4cd3..677202c65 100644 --- a/trunk/src/app/srs_app_http.cpp +++ b/trunk/src/app/srs_app_http.cpp @@ -1294,7 +1294,7 @@ SrsRequest* SrsHttpMessage::to_request(string vhost) SrsRequest* req = new SrsRequest(); req->app = _uri->get_path(); - ssize_t pos = string::npos; + size_t pos = string::npos; if ((pos = req->app.rfind("/")) != string::npos) { req->stream = req->app.substr(pos + 1); req->app = req->app.substr(0, pos);