diff --git a/classes/tdesktop.cc b/classes/tdesktop.cc index 38f1be4..041e0a0 100644 --- a/classes/tdesktop.cc +++ b/classes/tdesktop.cc @@ -142,8 +142,8 @@ TBackground *TDeskTop::initBackground( TRect r ) static unsigned iSqr( unsigned i ) { - unsigned res1 = 2; - unsigned res2 = i/res1; + int res1 = 2; + int res2 = i/res1; while( abs( res1 - res2 ) > 1 ) { res1 = (res1 + res2)/2; diff --git a/classes/tdisplay.cc b/classes/tdisplay.cc index 9225d48..fd44ecd 100644 --- a/classes/tdisplay.cc +++ b/classes/tdisplay.cc @@ -360,10 +360,10 @@ void TDisplay::setArgv(int aArgc, char **aArgv, char **aEnvir) environment=aEnvir; } -Boolean TDisplay::searchClosestRes(TScreenResolution *res, unsigned x, - unsigned y, unsigned cant, unsigned &pos) +Boolean TDisplay::searchClosestRes(TScreenResolution *res, int x, + int y, unsigned cant, unsigned &pos) { - unsigned i, minDif, indexMin, dif; + int i, minDif, indexMin, dif; int firstXMatch=-1; // Look for an exact match of width for (i=0; i