]> git.mxchange.org Git - flightgear.git/commitdiff
Change int to unsigned in sound device traversal
authorTim Moore <timoore@redhat.com>
Mon, 7 Dec 2009 05:59:04 +0000 (06:59 +0100)
committerTim Moore <timoore@redhat.com>
Mon, 7 Dec 2009 05:59:04 +0000 (06:59 +0100)
src/Main/fg_init.cxx

index 6e99a68bc61d26554029258e77a57098d9269add..f2784e2340504cb8905a4d89390960b859082f4d 100644 (file)
@@ -1457,7 +1457,7 @@ bool fgInitSubsystems() {
 
     vector <const char*>devices =
                         globals->get_soundmgr()->get_available_devices();
-    for (int i=0; i<devices.size(); i++) {
+    for (unsigned int i=0; i<devices.size(); i++) {
         SGPropertyNode *p = fgGetNode("/sim/sound/devices/device", i, true);
         p->setStringValue(devices[i]);
     }