diff options
author | Paul Gilbert | 2019-02-17 20:25:13 -0800 |
---|---|---|
committer | Paul Gilbert | 2019-02-17 20:25:13 -0800 |
commit | ce5b400e4a60ee06ce1ddfefed4023c635b3bf46 (patch) | |
tree | 43b2e7f057f93dc89d22fe6cc26e1c9f9aef0e8d | |
parent | 480ca0d388e0002321bbc46dd7ee930dad28eef9 (diff) | |
download | scummvm-rg350-ce5b400e4a60ee06ce1ddfefed4023c635b3bf46.tar.gz scummvm-rg350-ce5b400e4a60ee06ce1ddfefed4023c635b3bf46.tar.bz2 scummvm-rg350-ce5b400e4a60ee06ce1ddfefed4023c635b3bf46.zip |
GLK: FROTZ: Fix Coverity identified warnings
-rw-r--r-- | engines/glk/frotz/config.cpp | 2 | ||||
-rw-r--r-- | engines/glk/frotz/processor_screen.cpp | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/engines/glk/frotz/config.cpp b/engines/glk/frotz/config.cpp index 28e9c7f122..be6c6df33e 100644 --- a/engines/glk/frotz/config.cpp +++ b/engines/glk/frotz/config.cpp @@ -147,7 +147,7 @@ void Header::loadHeader(Common::SeekableReadStream &f) { UserOptions::UserOptions() : _undo_slots(MAX_UNDO_SLOTS), _sound(true), _quetzal(true), _color_enabled(false), _err_report_mode(ERR_REPORT_ONCE), _ignore_errors(false), _expand_abbreviations(false), _tandyBit(false), - _piracy(false), _script_cols(0), _left_margin(0), _right_margin(0) { + _piracy(false), _script_cols(0), _left_margin(0), _right_margin(0), _defaultBackground(0), _defaultForeground(0) { } void UserOptions::initialize(uint hVersion) { diff --git a/engines/glk/frotz/processor_screen.cpp b/engines/glk/frotz/processor_screen.cpp index 41932f53f8..2cc9080804 100644 --- a/engines/glk/frotz/processor_screen.cpp +++ b/engines/glk/frotz/processor_screen.cpp @@ -193,7 +193,7 @@ void Processor::erase_screen(zword win) { int curr_fg = _wp[1][TRUE_FG_COLOR]; int curr_bg = _wp[1][TRUE_BG_COLOR]; - if (win == -1) { + if ((short)win == -1) { if (_wp._upper) { glk_set_window(_wp._upper); #ifdef GARGLK |