From d2a53c61cee33adffc4270c0228a3a38118d8f7c Mon Sep 17 00:00:00 2001 From: martii Date: Thu, 16 Aug 2012 22:10:55 +0200 Subject: [PATCH] cast sizeof to signed to avoid compiler warning Origin commit data ------------------ Branch: master Commit: https://github.com/neutrino-images/ni-libstb-hal/commit/260a6fcc2f5cdb523e9878ba7f876e1805b1fe22 Author: martii Date: 2012-08-16 (Thu, 16 Aug 2012) ------------------ No further description and justification available within origin commit message! ------------------ This commit was generated by Migit --- libspark/video.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libspark/video.cpp b/libspark/video.cpp index 3c350b3..6c14182 100644 --- a/libspark/video.cpp +++ b/libspark/video.cpp @@ -693,7 +693,7 @@ void cVideo::SetControl(int control, int value) { if (p) { char buf[20]; int len = snprintf(buf, sizeof(buf), "%d", value); - if (len < sizeof(buf)) + if (len < (int) sizeof(buf)) proc_put(p, buf, len); } }