fix undefined shifts by >32

This one is for 0.12 too.

Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
Signed-off-by: Blue Swirl <blauwirbel@gmail.com>
This commit is contained in:
Paolo Bonzini 2010-02-04 14:31:50 +01:00 committed by Blue Swirl
parent 117f8eb81d
commit 0dfbd51446
1 changed files with 2 additions and 2 deletions

4
vl.c
View File

@ -2380,9 +2380,9 @@ static void numa_add(const char *optarg)
fprintf(stderr,
"only 63 CPUs in NUMA mode supported.\n");
}
value = (1 << (endvalue + 1)) - (1 << value);
value = (2ULL << endvalue) - (1ULL << value);
} else {
value = 1 << value;
value = 1ULL << value;
}
}
node_cpumask[nodenr] = value;