[vlc-commits] Access_http: fix sign comparison warning

Jean-Baptiste Kempf git at videolan.org
Thu Feb 17 22:37:15 CET 2011


vlc | branch: master | Jean-Baptiste Kempf <jb at videolan.org> | Thu Feb 17 22:36:59 2011 +0100| [04cabfa4136319e70ec30b13af39cf94ae599e89] | committer: Jean-Baptiste Kempf

Access_http: fix sign comparison warning

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

 modules/access/http.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/modules/access/http.c b/modules/access/http.c
index 3dbbf8b..bd35871 100644
--- a/modules/access/http.c
+++ b/modules/access/http.c
@@ -1450,7 +1450,7 @@ static int Request( access_t *p_access, uint64_t i_tell )
                 p_access->info.i_pos = i_ntell;
                 p_sys->i_icy_offset  = i_ntell;
                 p_sys->i_remaining = i_nend+1-i_ntell;
-                int64_t i_size = (i_nsize > i_nend) ? i_nsize : (i_nend + 1);
+                uint64_t i_size = (i_nsize > i_nend) ? i_nsize : (i_nend + 1);
                 if(i_size > p_access->info.i_size) {
                     p_sys->b_has_size = true;
                     p_access->info.i_size = i_size;



More information about the vlc-commits mailing list