From c31e483a6f83802955f9bf0f15262fb44484ab50 Mon Sep 17 00:00:00 2001 From: Alyssa Milburn Date: Fri, 21 Jan 2011 14:20:48 +0000 Subject: MOHAWK: Add casts to remaining uses of ~0. This silences some warnings for now. svn-id: r55379 --- engines/mohawk/cstime_game.cpp | 4 ++-- engines/mohawk/cstime_ui.cpp | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) (limited to 'engines') diff --git a/engines/mohawk/cstime_game.cpp b/engines/mohawk/cstime_game.cpp index 3186415f92..1f359c24f0 100644 --- a/engines/mohawk/cstime_game.cpp +++ b/engines/mohawk/cstime_game.cpp @@ -477,7 +477,7 @@ void CSTimeConversation::end(bool useLastClicked, bool runEvents) { invDisplay->setState(0); } - setState(~0); + setState((uint)~0); _currHover = 0xffff; interface->clearTextLine(); @@ -607,7 +607,7 @@ void CSTimeConversation::setAsked(uint qar, uint entry) { } void CSTimeConversation::clear() { - _state = ~0; + _state = (uint)~0; _talkCount = 0; _sourceChar = 0xffff; _currHover = 0xffff; diff --git a/engines/mohawk/cstime_ui.cpp b/engines/mohawk/cstime_ui.cpp index eef9970f15..d3985998ce 100644 --- a/engines/mohawk/cstime_ui.cpp +++ b/engines/mohawk/cstime_ui.cpp @@ -830,7 +830,7 @@ void CSTimeInterface::dropItemInInventory(uint16 id) { } CSTimeHelp::CSTimeHelp(MohawkEngine_CSTime *vm) : _vm(vm) { - _state = ~0; + _state = (uint)~0; } CSTimeHelp::~CSTimeHelp() { -- cgit v1.2.3