[Scummvm-tracker] [ScummVM] #10308: TITANIC: Compiler error

Hubert Maier trac at scummvm.org
Fri Oct 27 18:38:33 CEST 2017


#10308: TITANIC: Compiler error
--------------------+-----------------------------
Reporter:  raziel-  |      Owner:  (none)
    Type:  defect   |     Status:  new
Priority:  normal   |  Component:  Engine: Titanic
Keywords:           |       Game:
--------------------+-----------------------------
 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

--
Ticket URL: <https://bugs.scummvm.org/ticket/10308>
ScummVM <https://bugs.scummvm.org>
ScummVM


More information about the Scummvm-tracker mailing list