Opened 7 years ago

Closed 7 years ago

#10308 closed defect (fixed)

TITANIC: Compiler error

Reported by: raziel- Owned by: dreammaster
Priority: normal Component: Engine: Titanic
Version: Keywords:
Cc: Game: Starship Titanic

Description

ScummVM 1.10.0git (Oct 14 2017 09:32:26)
Features compiled in: Vorbis FLAC MP3 RGB zLib MPEG2 Theora AAC FreeType2 JPEG PNG cloud (servers, local)

I get a compiler error, see below

C++ engines/titanic/support/mouse_cursor.o

engines/titanic/support/mouse_cursor.cpp: In member function 'void Titanic::CMouseCursor::update()':
engines/titanic/support/mouse_cursor.cpp:162:73: error: no matching function for call to 'CLIP(uint32, uint&, uint&)'

uint32 time = CLIP(g_system->getMillis(), _moveStartTime, _moveEndTime);


In file included from ./common/rect.h:27:0,

from ./graphics/managed_surface.h:28,
from ./engines/titanic/support/mouse_cursor.h:27,
from engines/titanic/support/mouse_cursor.cpp:23:

./common/util.h:51:31: note: candidate: template<class T> T CLIP(T, T, T)

template<typename T> inline T CLIP(T v, T amin, T amax)


./common/util.h:51:31: note: template argument deduction/substitution failed:
engines/titanic/support/mouse_cursor.cpp:162:73: note: deduced conflicting types for parameter 'T' ('long unsigned int' and 'unsigned int')

uint32 time = CLIP(g_system->getMillis(), _moveStartTime, _moveEndTime);


gmake: * [engines/titanic/support/mouse_cursor.o] Error 1

gcc (adtools build 5.3.0) 5.3.0
AmigaOS4 - PPC - SDL - BE

Change History (1)

comment:1 by dreammaster, 7 years ago

Game: Starship Titanic
Owner: set to dreammaster
Resolution: fixed
Status: newclosed

Applied a change should fix the error

Note: See TracTickets for help on using tickets.