mirror of
https://github.com/amyinspace/MagicSetEditor2.git
synced 2026-06-11 05:07:00 -04:00
Fixed compilation errors for gcc@linux (not all yet).
git-svn-id: svn://svn.code.sf.net/p/magicseteditor/code/trunk@181 0fc631ac-6414-0410-93d0-97cfa31319b6
This commit is contained in:
@@ -18,7 +18,7 @@
|
||||
/** Intentionally uses slightly less then 0.5, to give a more consistent result
|
||||
* when for instance something like "x/2" is used. */
|
||||
inline int to_int(double d) {
|
||||
return d > 0 ? d + 0.4999995 : d - 0.4999995;
|
||||
return static_cast<int>(d > 0 ? d + 0.4999995 : d - 0.4999995);
|
||||
}
|
||||
|
||||
// ----------------------------------------------------------------------------- : Vector2D
|
||||
|
||||
Reference in New Issue
Block a user