From 127ec08ae6bffeefedd06b73aea4ee2fa2bd265b Mon Sep 17 00:00:00 2001 From: Pavel Labath Date: Fri, 29 Apr 2011 10:28:28 +0200 Subject: Fix "comparison between signed and unsigned" warning --- util/fluxbox-update_configs.cc | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/util/fluxbox-update_configs.cc b/util/fluxbox-update_configs.cc index 37248ce..fe1261c 100644 --- a/util/fluxbox-update_configs.cc +++ b/util/fluxbox-update_configs.cc @@ -563,8 +563,7 @@ int run_updates(int old_version, FbTk::ResourceManager &rm) { string appsfilename = FbTk::StringUtil::expandFilename(*rc_appsfile); string keyfilename = FbTk::StringUtil::expandFilename(*rc_keyfile); - int i; - for (i = 0; i < sizeof(UPDATES) / sizeof(Update); ++i) { + for (size_t i = 0; i < sizeof(UPDATES) / sizeof(Update); ++i) { if (old_version < UPDATES[i].version) { UPDATES[i].update(rm, keyfilename, appsfilename); new_version = UPDATES[i].version; -- cgit v0.11.2