From ce5b400e4a60ee06ce1ddfefed4023c635b3bf46 Mon Sep 17 00:00:00 2001 From: Paul Gilbert Date: Sun, 17 Feb 2019 20:25:13 -0800 Subject: GLK: FROTZ: Fix Coverity identified warnings --- engines/glk/frotz/config.cpp | 2 +- engines/glk/frotz/processor_screen.cpp | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) (limited to 'engines/glk') 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 -- cgit v1.2.3