提交 5989b005 编写于 作者: J Ján Tomko

Reverse the logic in virbitmaptest

Test the whole range in testBit, not just the first bit.
上级 7b2f12fe
......@@ -74,11 +74,11 @@ testBit(virBitmapPtr bitmap,
for (i = start; i <= end; i++) {
if (virBitmapGetBit(bitmap, i, &result) < 0)
return -1;
if (result == expected)
return 0;
if (result != expected)
return -1;
}
return -1;
return 0;
}
static int
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册