X-Git-Url: https://git.octo.it/?a=blobdiff_plain;f=src%2Fvirt.c;h=e95a31b49d23883ba725f4bbf03d6e89254773a9;hb=d3e97e2e0c710c1bbe0cac873bd1c5df004bc740;hp=692088c46fcdcb0f449519a016a31c8699e503b2;hpb=d492192a5ebb0042b8d2e8370d7789e049dfbb8d;p=collectd.git diff --git a/src/virt.c b/src/virt.c index 692088c4..e95a31b4 100644 --- a/src/virt.c +++ b/src/virt.c @@ -414,7 +414,7 @@ static void memory_stats_submit(gauge_t value, virDomainPtr dom, "minor_fault", "unused", "available", "actual_balloon", "rss"}; - if ((tag_index < 0) || (tag_index >= STATIC_ARRAY_SIZE(tags))) { + if ((tag_index < 0) || (tag_index >= (int)STATIC_ARRAY_SIZE(tags))) { ERROR("virt plugin: Array index out of bounds: tag_index = %d", tag_index); return; }