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>
(cherry picked from commit 0dfbd51446
)
This commit is contained in:
parent
5163f6e864
commit
41a5bda61f
4
vl.c
4
vl.c
|
@ -2573,9 +2573,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;
|
||||
|
|
Loading…
Reference in New Issue