MantisBT - VCMI
View Issue Details
0000672VCMIOtherpublic2011-02-21 19:222014-05-30 17:40
pipeliner 
Tow dragon 
normalmajorhave not tried
closedfixed 
LinuxDebian x86_64 GNU/Linux 6.0 squeeze
 
 
0000672: std::min(size_t, unsigned int) is incorrect on x86_64
Comparison between hero->secSkills.size() and 8u with std::min() does not work on x86_64 platform.

g++ (Debian 4.4.5-8) 4.4.5 writes:
CHeroWindow.cpp: In constructor ‘CHeroWindow::CHeroWindow(const CGHeroInstance*)’:
CHeroWindow.cpp:123: error: no matching function for call to ‘min(size_t, unsigned int)’
No tags attached.
Issue History
2011-02-21 19:22pipelinerNew Issue
2011-02-23 15:55Tow dragonNote Added: 0001536
2011-02-23 15:55Tow dragonStatusnew => resolved
2011-02-23 15:55Tow dragonResolutionopen => fixed
2011-02-23 15:55Tow dragonAssigned To => Tow dragon
2014-05-30 17:40beegeeStatusresolved => closed

Notes
(0001536)
Tow dragon   
2011-02-23 15:55   
I've specified the templated type explicitly, what should fix the problem (rev 1989)