aboutsummaryrefslogtreecommitdiff
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
commit138b38b61bf92d4e9588acf934e532499c94e185 (patch)
tree0661194c38fa7174bf6e75a71ecb7921eb5fdc3b /target-ppc
parent2c90fe2b71df2534884bce96d90cbfcc93aeedb8 (diff)
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)