From bc99951685fe5c6d9e7df5f6e92af926fd0abb01 Mon Sep 17 00:00:00 2001 From: Christophe Fergeau Date: Sun, 19 Feb 2012 23:20:26 +0100 Subject: mingw: use unsigned int in for loops when needed gcc complains about mixed use of signed/unsigned otherwise --- vdservice/vdservice.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'vdservice') 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; -- cgit v1.2.3