[ scummvm-Bugs-3534287 ] AMIGAOS4: Compiler error in Geisha Minigames
SourceForge.net
noreply at sourceforge.net
Mon Jun 11 12:17:36 CEST 2012
Bugs item #3534287, was opened at 2012-06-11 03:17
Message generated for change (Tracker Item Submitted) made by raziel_
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=418820&aid=3534287&group_id=37116
Please note that this message will contain a full copy of the comment thread,
including the initial issue submission, for this request,
not just the latest update.
Category: Compiler error
Group: None
Status: Open
Resolution: None
Priority: 5
Private: No
Submitted By: Hubert Maier (raziel_)
Assigned to: Nobody/Anonymous (nobody)
Summary: AMIGAOS4: Compiler error in Geisha Minigames
Initial Comment:
ScummVM 1.5.0git (May 31 2012 15:35:34)
Features compiled in: Vorbis FLAC MP3 RGB zLib Theora AAC FreeType2
C++ engines/gob/minigames/geisha/meter.o
engines/gob/minigames/geisha/meter.cpp: In member function 'int32 Gob::Geisha::Meter::increase(int32)':
engines/gob/minigames/geisha/meter.cpp:70: error: no matching function for call to 'MAX(int, long int)'
engines/gob/minigames/geisha/meter.cpp: In member function 'int32 Gob::Geisha::Meter::decrease(int32)':
engines/gob/minigames/geisha/meter.cpp:86: error: no matching function for call to 'MIN(int, long int)'
gmake: *** [engines/gob/minigames/geisha/meter.o] Error 1
Changing lines 70 and 86 to
70:
int32 overflow = MAX<int32>(0, (_value + n) - _maxValue);
86:
int32 underflow = -MIN<int32>(0, _value - n);
will fix the error.
AmigaOS4 - PPC - SDL - BE
gcc (GCC) 4.2.4 (adtools build 20090118)
----------------------------------------------------------------------
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=418820&aid=3534287&group_id=37116
More information about the Scummvm-tracker
mailing list