Opened 8 years ago

Closed 8 years ago

Last modified 8 years ago

#5817 closed defect (fixed)

AMIGAOS4: Compiler error in TSage

Reported by: raziel- Owned by: dreammaster
Priority: normal Component: Engine: TsAGE
Keywords: build Cc:
Game: Ringworld: Revenge of the Patriarch

Description

ScummVM 1.4.0git-68b4873 (Aug 06 2011 09:08:59)
Features compiled in: Vorbis FLAC MP3 RGB zLib Theora AAC

C++ engines/tsage/sound.o
engines/tsage/sound.cpp: In member function 'virtual int tSage::AdlibSoundDriver::readBuffer(int16*, int)':
engines/tsage/sound.cpp:2795: error: no matching function for call to 'MIN(int32&, int&)'
gmake: *** [engines/tsage/sound.o] Error 1

Changing line 2795 in engines/tsage/sound.cpp from
int32 render = MIN(samplesLeft, _samplesTillCallback);
to
int32 render = MIN<int>(samplesLeft, _samplesTillCallback);
fixes it.

AmigaOS4 - PPC - SDL - BE
gcc (GCC) 4.2.4 (adtools build 20090118)

Ticket imported from: #3387129. Ticket imported from: bugs/5817.

Change History (2)

comment:1 Changed 8 years ago by dreammaster

Owner: set to dreammaster
Resolution: fixed
Status: newclosed

comment:2 Changed 8 years ago by dreammaster

Component: Engine: TsAGE
Game: Ringworld: Revenge of the Patriarch
Note: See TracTickets for help on using tickets.