aboutsummaryrefslogtreecommitdiff
path: root/engines/glk/conf.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'engines/glk/conf.cpp')
-rw-r--r--engines/glk/conf.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/engines/glk/conf.cpp b/engines/glk/conf.cpp
index efd16874b2..0d2c33fc04 100644
--- a/engines/glk/conf.cpp
+++ b/engines/glk/conf.cpp
@@ -94,9 +94,9 @@ Conf::Conf(InterpreterType interpType) {
get("cols", _cols, 60);
if (ConfMan.hasKey("leading"))
- _leading = atof(ConfMan.get("leading").c_str()) + 0.5;
+ _leading = static_cast<int>(atof(ConfMan.get("leading").c_str()) + 0.5);
if (ConfMan.hasKey("baseline"))
- _baseLine = atof(ConfMan.get("baseline").c_str()) + 0.5;
+ _baseLine = static_cast<int>(atof(ConfMan.get("baseline").c_str()) + 0.5);
if (ConfMan.hasKey("minrows"))
_rows = MAX(_rows, strToInt(ConfMan.get("minrows").c_str()));