[libbluray-devel] Hide warning

hpi1 git at videolan.org
Tue Nov 10 12:33:28 CET 2015


libbluray | branch: master | hpi1 <hpi1 at anonymous.org> | Tue Nov 10 13:32:38 2015 +0200| [cf0dbac13d0becfa2c87ea1e6ba1bb336e827160] | committer: hpi1

Hide warning

Both values >= 0

> http://git.videolan.org/gitweb.cgi/libbluray.git/?a=commit;h=cf0dbac13d0becfa2c87ea1e6ba1bb336e827160
---

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

diff --git a/src/util/logging.c b/src/util/logging.c
index 76ae7a4..62e6b59 100644
--- a/src/util/logging.c
+++ b/src/util/logging.c
@@ -104,7 +104,7 @@ void bd_debug(const char *file, int line, uint32_t mask, const char *format, ...
 
         } else {
             len += len2;
-            if (len >= sizeof(buffer)) {
+            if ((size_t)len >= sizeof(buffer)) {
                 len = sizeof(buffer);
             }
 



More information about the libbluray-devel mailing list