Commit 0dfbd514 authored by Paolo Bonzini's avatar Paolo Bonzini Committed by Blue Swirl
Browse files

fix undefined shifts by >32



This one is for 0.12 too.

Signed-off-by: default avatarPaolo Bonzini <pbonzini@redhat.com>
Signed-off-by: default avatarBlue Swirl <blauwirbel@gmail.com>
parent 117f8eb8
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -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;