diff options
author | Dennis Kasprzyk <onestone@compiz-fusion.org> | 2009-07-31 01:11:13 +0200 |
---|---|---|
committer | Dennis kasprzyk <onestone@compiz-fusion.org> | 2009-07-31 01:12:04 +0200 |
commit | b220ff78a833f6dbcdb866a17c0d9ce214f3cc5e (patch) | |
tree | 938816937266d8b3b3f3036780fabf5ee156caaf /src | |
parent | 0b59bca273529fa2849409c4a25fd225fa20b8de (diff) | |
download | zcomp-b220ff78a833f6dbcdb866a17c0d9ce214f3cc5e.tar.gz zcomp-b220ff78a833f6dbcdb866a17c0d9ce214f3cc5e.tar.bz2 |
Handle signed/unsigned correctly
Diffstat (limited to 'src')
-rw-r--r-- | src/pluginclasses.cpp | 6 | ||||
-rw-r--r-- | src/screen.cpp | 6 | ||||
-rw-r--r-- | src/window.cpp | 6 |
3 files changed, 9 insertions, 9 deletions
diff --git a/src/pluginclasses.cpp b/src/pluginclasses.cpp index 3c36db6..ea5223f 100644 --- a/src/pluginclasses.cpp +++ b/src/pluginclasses.cpp @@ -34,7 +34,7 @@ PluginClassStorage::PluginClassStorage (PluginClassStorage::Indices& iList) : pluginClasses.resize (iList.size ()); } -int +unsigned int PluginClassStorage::allocatePluginClassIndex (PluginClassStorage::Indices& iList) { unsigned int i; @@ -57,9 +57,9 @@ PluginClassStorage::allocatePluginClassIndex (PluginClassStorage::Indices& iList void PluginClassStorage::freePluginClassIndex (PluginClassStorage::Indices& iList, - int idx) + unsigned int idx) { - int size = iList.size (); + unsigned int size = iList.size (); if (idx < 0 || idx >= size) return; diff --git a/src/screen.cpp b/src/screen.cpp index 67cb460..86dacf5 100644 --- a/src/screen.cpp +++ b/src/screen.cpp @@ -90,10 +90,10 @@ ModifierHandler *modHandler; PluginClassStorage::Indices screenPluginClassIndices (0); -int +unsigned int CompScreen::allocPluginClassIndex () { - int i = PluginClassStorage::allocatePluginClassIndex (screenPluginClassIndices); + unsigned int i = PluginClassStorage::allocatePluginClassIndex (screenPluginClassIndices); if (screenPluginClassIndices.size () != screen->pluginClasses.size ()) screen->pluginClasses.resize (screenPluginClassIndices.size ()); @@ -102,7 +102,7 @@ CompScreen::allocPluginClassIndex () } void -CompScreen::freePluginClassIndex (int index) +CompScreen::freePluginClassIndex (unsigned int index) { PluginClassStorage::freePluginClassIndex (screenPluginClassIndices, index); diff --git a/src/window.cpp b/src/window.cpp index 3bea68c..e6188b8 100644 --- a/src/window.cpp +++ b/src/window.cpp @@ -48,10 +48,10 @@ PluginClassStorage::Indices windowPluginClassIndices (0); -int +unsigned int CompWindow::allocPluginClassIndex () { - int i = PluginClassStorage::allocatePluginClassIndex (windowPluginClassIndices); + unsigned int i = PluginClassStorage::allocatePluginClassIndex (windowPluginClassIndices); foreach (CompWindow *w, screen->windows ()) if (windowPluginClassIndices.size () != w->pluginClasses.size ()) @@ -61,7 +61,7 @@ CompWindow::allocPluginClassIndex () } void -CompWindow::freePluginClassIndex (int index) +CompWindow::freePluginClassIndex (unsigned int index) { PluginClassStorage::freePluginClassIndex (windowPluginClassIndices, index); |