argument is float, so use fabs() and cast to int

git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/apps/gorm/trunk@39012 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
Riccardo Mottola 2015-09-22 16:01:51 +00:00
parent 12c6bf8502
commit 4a816635df

View file

@ -109,13 +109,13 @@
switch (_border)
{
case Top:
return abs (_position - NSMaxY(frame));
return (int) fabs (_position - NSMaxY(frame));
case Bottom:
return abs (_position - NSMinY(frame));
return (int) fabs (_position - NSMinY(frame));
case Left:
return abs (_position - NSMinX(frame));
return (int) fabs (_position - NSMinX(frame));
case Right:
return abs (_position - NSMaxX(frame));
return (int) fabs (_position - NSMaxX(frame));
default:
return guideSpacing;
}