[vlc-commits] demux/adaptive: Make i_redirects unsigned

Marvin Scholz git at videolan.org
Thu Feb 15 10:15:40 CET 2018


vlc | branch: master | Marvin Scholz <epirat07 at gmail.com> | Thu Feb 15 01:55:38 2018 +0100| [26acf28399a098cce73cf94de5e27efc08db40e4] | committer: Francois Cartegnie

demux/adaptive: Make i_redirects unsigned

i_redirects can never be negative and this fixes a warning about
comparison of integers of different signs.

Signed-off-by: Francois Cartegnie <fcvlcdev at free.fr>

> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=26acf28399a098cce73cf94de5e27efc08db40e4
---

 modules/demux/adaptive/http/Chunk.cpp | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/modules/demux/adaptive/http/Chunk.cpp b/modules/demux/adaptive/http/Chunk.cpp
index 25b33961e2..e8826514e7 100644
--- a/modules/demux/adaptive/http/Chunk.cpp
+++ b/modules/demux/adaptive/http/Chunk.cpp
@@ -214,7 +214,7 @@ bool HTTPChunkSource::prepare()
 
     ConnectionParams connparams = params; /* can be changed on 301 */
 
-    int i_redirects = 0;
+    unsigned int i_redirects = 0;
     while(i_redirects++ < HTTPConnection::MAX_REDIRECTS)
     {
         if(!connection)



More information about the vlc-commits mailing list