diff options
author | Christophe Fergeau <cfergeau@redhat.com> | 2012-02-19 23:20:26 +0100 |
---|---|---|
committer | Christophe Fergeau <cfergeau@redhat.com> | 2012-03-01 12:59:05 +0100 |
commit | bc99951685fe5c6d9e7df5f6e92af926fd0abb01 (patch) | |
tree | 454ffe8b7d61d1e5a5fbdeaa211960b634ce5008 /vdservice | |
parent | 52d659428491ea7311064970cc2d7a572adc3c10 (diff) |
mingw: use unsigned int in for loops when needed
gcc complains about mixed use of signed/unsigned otherwise
Diffstat (limited to 'vdservice')
-rw-r--r-- | vdservice/vdservice.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/vdservice/vdservice.cpp b/vdservice/vdservice.cpp index ca9ac1e..4701f5a 100644 --- a/vdservice/vdservice.cpp +++ b/vdservice/vdservice.cpp @@ -460,7 +460,7 @@ bool VDService::init_vdi_port() { VDIPort* (*creators[])(void) = { create_virtio_vdi_port, create_pci_vdi_port }; - for (int i = 0 ; i < sizeof(creators)/sizeof(creators[0]); ++i) { + for (unsigned int i = 0 ; i < sizeof(creators)/sizeof(creators[0]); ++i) { _vdi_port = creators[i](); if (_vdi_port->init()) { return true; |