[libdvdnav-devel] ifo_read: Mark literals as unsigned to avoid a comparison sign warning

Diego Biurrun git at videolan.org
Thu Jan 2 22:45:27 CET 2014


libdvdread | branch: master | Diego Biurrun <diego at biurrun.de> | Thu Jan  2 22:44:09 2014 +0100| [0ef9c54cca7454f26ef79f3f65e964653b8b0952] | committer: Diego Biurrun

ifo_read: Mark literals as unsigned to avoid a comparison sign warning

src/ifo_read.c:1402:19: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]

> http://git.videolan.org/gitweb.cgi/libdvdread.git/?a=commit;h=0ef9c54cca7454f26ef79f3f65e964653b8b0952
---

 src/ifo_read.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/ifo_read.c b/src/ifo_read.c
index debe589..3b6b262 100644
--- a/src/ifo_read.c
+++ b/src/ifo_read.c
@@ -1399,7 +1399,7 @@ int ifoRead_PTL_MAIT(ifo_handle_t *ifofile) {
       ifofile->ptl_mait = NULL;
       return 0;
     }
-    for (j = 0; j < ((ptl_mait->nr_of_vtss + 1) * 8); j++) {
+    for (j = 0; j < ((ptl_mait->nr_of_vtss + 1U) * 8U); j++) {
       B2N_16(pf_temp[j]);
     }
     ptl_mait->countries[i].pf_ptl_mai = malloc(info_length);



More information about the libdvdnav-devel mailing list