[vlc-commits] STL: kill warning about sign comparison

Jean-Baptiste Kempf git at videolan.org
Mon Oct 31 00:42:29 CET 2011


vlc | branch: master | Jean-Baptiste Kempf <jb at videolan.org> | Fri Oct 28 15:04:34 2011 +0200| [4cff240b24f80fd4e3ca38ceb1d37be8c445d99b] | committer: Jean-Baptiste Kempf

STL: kill warning about sign comparison

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

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

diff --git a/modules/codec/stl.c b/modules/codec/stl.c
index 981333f..d534b52 100644
--- a/modules/codec/stl.c
+++ b/modules/codec/stl.c
@@ -140,7 +140,7 @@ static subpicture_t *Decode(decoder_t *dec, block_t **block)
     uint8_t *payload = malloc(payload_size);
     if (!payload)
         goto exit;
-    for (int i = 0; i < b->i_buffer / 128; i++)
+    for (unsigned i = 0; i < b->i_buffer / 128; i++)
         memcpy(&payload[112 * i], &b->p_buffer[128 * i + 16], 112);
 
     sub = decoder_NewSubpicture(dec, NULL);



More information about the vlc-commits mailing list