diff options
author | Paolo Bonzini <pbonzini@redhat.com> | 2010-02-04 14:31:50 +0100 |
---|---|---|
committer | Blue Swirl <blauwirbel@gmail.com> | 2010-02-05 18:13:04 +0000 |
commit | 0dfbd514460045e3af1ed6805ab97ffedbbd1ab2 (patch) | |
tree | 7f83153920df2aac42b6c2bd9facf9dbc883f13b /vl.c | |
parent | 117f8eb81dfdf51a0418fbf6d260cbb72bcd4a9d (diff) |
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>
Diffstat (limited to 'vl.c')
-rw-r--r-- | vl.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -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; |