[vlc-commits] demux/adaptive: Make i_redirects unsigned
Marvin Scholz
git at videolan.org
Thu Feb 15 10:18:00 CET 2018
vlc/vlc-3.0 | branch: master | Marvin Scholz <epirat07 at gmail.com> | Thu Feb 15 01:55:38 2018 +0100| [b5a0b76b62a2798541027029c732ba87aacd889c] | 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>
(cherry picked from commit 26acf28399a098cce73cf94de5e27efc08db40e4)
> http://git.videolan.org/gitweb.cgi/vlc/vlc-3.0.git/?a=commit;h=b5a0b76b62a2798541027029c732ba87aacd889c
---
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