Use floor() instead of floorf().

git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@19749 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
alexm 2004-07-19 23:28:33 +00:00
parent 2c09060053
commit ec389a2c20
2 changed files with 6 additions and 1 deletions

View file

@ -1,3 +1,8 @@
2004-07-20 01:24 Alexander Malmberg <alexander@malmberg.org>
* Source/NSScroller.m (-rectForPart:): Use floor() instead of
floorf().
2004-07-18 Gregory John Casamento <greg_casamento@yahoo.com>
* Source/GSNibTemplates.m: Removed some commented out code.

View file

@ -970,7 +970,7 @@ static NSColor *scrollBarColor = nil;
/* calc knob's position */
knobPosition = _floatValue * (slotHeight - knobHeight);
knobPosition = (float)floorf(knobPosition);
knobPosition = floor(knobPosition);
/* calc actual position */