mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-11-29 15:52:07 +00:00
Bug 670338 - Add double overload to NSToIntRound to stop build warnings; r=roc
This commit is contained in:
parent
5802023c26
commit
2732bc62de
@ -413,6 +413,11 @@ inline PRInt32 NSToIntRound(float aValue)
|
||||
return NS_lroundf(aValue);
|
||||
}
|
||||
|
||||
inline PRInt32 NSToIntRound(double aValue)
|
||||
{
|
||||
return NS_lround(aValue);
|
||||
}
|
||||
|
||||
inline PRInt32 NSToIntRoundUp(float aValue)
|
||||
{
|
||||
return PRInt32(NS_floorf(aValue + 0.5f));
|
||||
|
Loading…
Reference in New Issue
Block a user