summaryrefslogtreecommitdiffstats
path: root/configure
diff options
context:
space:
mode:
authorMichael S. Tsirkin2022-01-25 20:17:33 +0100
committerMichael S. Tsirkin2022-02-04 15:07:43 +0100
commit2a728de1fff4b9ceede039d078e5e33ff71908f1 (patch)
treef84b48e332a784d3f182912e9717695af6dc7d52 /configure
parentMerge remote-tracking branch 'remotes/hdeller/tags/hppa-updates-pull-request'... (diff)
downloadqemu-2a728de1fff4b9ceede039d078e5e33ff71908f1.tar.gz
qemu-2a728de1fff4b9ceede039d078e5e33ff71908f1.tar.xz
qemu-2a728de1fff4b9ceede039d078e5e33ff71908f1.zip
cpuid: use unsigned for max cpuid
__get_cpuid_max returns an unsigned value. For consistency, store the result in an unsigned variable. Cc: Paolo Bonzini <pbonzini@redhat.com> Cc: Richard Henderson <rth@twiddle.net> Signed-off-by: Michael S. Tsirkin <mst@redhat.com> Reviewed-by: Philippe Mathieu-Daudé <f4bug@amsat.org>
Diffstat (limited to 'configure')
-rwxr-xr-xconfigure2
1 files changed, 1 insertions, 1 deletions
diff --git a/configure b/configure
index e6cfc0e4be..dfb9019b24 100755
--- a/configure
+++ b/configure
@@ -2768,7 +2768,7 @@ cat > $TMPC << EOF
#include <cpuid.h>
int main(void) {
unsigned a, b, c, d;
- int max = __get_cpuid_max(0, 0);
+ unsigned max = __get_cpuid_max(0, 0);
if (max >= 1) {
__cpuid(1, a, b, c, d);