[vlc-devel] [PATCH] demux/adaptive: Make i_redirects unsigned

Marvin Scholz epirat07 at gmail.com
Thu Feb 15 01:55:38 CET 2018


i_redirects can never be negative and this fixes a warning about
comparison of integers of different signs.
---
 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)
-- 
2.14.3 (Apple Git-98)



More information about the vlc-devel mailing list