summaryrefslogtreecommitdiff
path: root/target-ppc
diff options
context:
space:
mode:
authorAlexander Graf <agraf@suse.de>2010-11-25 08:20:46 +0100
committerEdgar E. Iglesias <edgar@axis.com>2010-12-08 21:30:19 +0100
commit0a892257657216f9952be8cefd150c3fb68ac2e4 (patch)
tree0661194c38fa7174bf6e75a71ecb7921eb5fdc3b /target-ppc
parent6358d2e8065ce7e57cd1691380a947d5eea21bab (diff)
downloadqemu-0a892257657216f9952be8cefd150c3fb68ac2e4.tar.gz
qemu-0a892257657216f9952be8cefd150c3fb68ac2e4.tar.bz2
qemu-0a892257657216f9952be8cefd150c3fb68ac2e4.zip
ppc: kvm: fix signedness warning
I get a warning on a signed comparison with an unsigned variable, so let's make the variable signed and be happy. Signed-off-by: Alexander Graf <agraf@suse.de> Signed-off-by: Edgar E. Iglesias <edgar@axis.com>
Diffstat (limited to 'target-ppc')
-rw-r--r--target-ppc/kvm.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/target-ppc/kvm.c b/target-ppc/kvm.c
index 5cacef7b58..5caa07cba8 100644
--- a/target-ppc/kvm.c
+++ b/target-ppc/kvm.c
@@ -132,7 +132,7 @@ int kvm_arch_get_registers(CPUState *env)
{
struct kvm_regs regs;
struct kvm_sregs sregs;
- uint32_t i, ret;
+ int i, ret;
ret = kvm_vcpu_ioctl(env, KVM_GET_REGS, &regs);
if (ret < 0)