--- tvision/classes/tdesktop.cc.orig 2017-07-15 07:58:51.301675267 +0000 +++ tvision/classes/tdesktop.cc 2017-07-15 07:59:32.794966900 +0000 @@ -144,7 +144,7 @@ { unsigned res1 = 2; unsigned res2 = i/res1; - while( abs( res1 - res2 ) > 1 ) + while( abs( (int)(res1 - res2) ) > 1 ) { res1 = (res1 + res2)/2; res2 = i/res1; --- tvision/classes/tdisplay.cc.orig 2017-07-15 08:03:33.071392952 +0000 +++ tvision/classes/tdisplay.cc 2017-07-15 08:04:28.314670997 +0000 @@ -381,10 +381,10 @@ if (firstXMatch!=-1) {// Return the closest y that match x i=indexMin=firstXMatch; - minDif=abs(res[i].y-y); + minDif=abs((int)(res[i].y-y)); while (++i