cast sizeof to signed to avoid compiler warning

This commit is contained in:
martii
2012-08-16 22:10:55 +02:00
parent 2bdab523e5
commit 260a6fcc2f

View File

@@ -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);
}
}