Permalink
Browse files

MACVENTURE: Fix Comparison Always True Compiler Warning.

There is no need for ABS() call as the parameters called on are both
unsigned integers.
  • Loading branch information...
1 parent 09269c2 commit 6c4b89e6dc439299af68afaa75b366e4aece45c9 @digitall digitall committed Jan 12, 2017
Showing with 1 addition and 1 deletion.
  1. +1 −1 engines/macventure/gui.cpp
@@ -335,7 +335,7 @@ WindowReference Gui::createInventoryWindow(ObjID objRef) {
Graphics::MacWindow *newWindow = _wm.addWindow(true, true, true);
WindowData newData;
GlobalSettings settings = _engine->getGlobalSettings();
- newData.refcon = (WindowReference)ABS(_inventoryWindows.size() + kInventoryStart); // This is a HACK
+ newData.refcon = (WindowReference)(_inventoryWindows.size() + kInventoryStart); // This is a HACK
if (_windowData->back().refcon < 0x80) { // There is already another inventory window
newData.bounds = _windowData->back().bounds; // Inventory windows are always last

0 comments on commit 6c4b89e

Please sign in to comment.