Sparse fixes: dubious mixing of bitwise and logical operations

git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@6741 c046a42c-6fe2-441c-8c8c-71466251a162
This commit is contained in:
blueswir1 2009-03-07 16:03:05 +00:00
parent 50773fd23d
commit 70c14705c3
2 changed files with 5 additions and 5 deletions

View file

@ -2246,7 +2246,7 @@ static void cirrus_cursor_invalidate(VGAState *s1)
CirrusVGAState *s = (CirrusVGAState *)s1;
int size;
if (!s->sr[0x12] & CIRRUS_CURSOR_SHOW) {
if (!(s->sr[0x12] & CIRRUS_CURSOR_SHOW)) {
size = 0;
} else {
if (s->sr[0x12] & CIRRUS_CURSOR_LARGE)