explicitly expect unsigned int
This fixes: src/FbTk/XftFontImp.cc: In member function ‘virtual bool FbTk::XftFontImp::load(const string&)’: src/FbTk/XftFontImp.cc:81:53: error: no matching function for call to ‘max(unsigned int, int)’
This commit is contained in:
parent
02cc0c6fc1
commit
53fa0d6aac
1 changed files with 1 additions and 1 deletions
|
@ -78,7 +78,7 @@ bool XftFontImp::load(const std::string &name) {
|
|||
// overflow'). to prevent something like this we detect the maximium
|
||||
// number of glyphs by calculating the amount of 'WW' (pretending a 'wide'
|
||||
// glyph) fitting into 32k pixels
|
||||
unsigned int tw = std::max(textWidth("WW", 2), 1);
|
||||
unsigned int tw = std::max<unsigned int>(textWidth("WW", 2), 1);
|
||||
m_maxlength = 0x8000 / tw;
|
||||
|
||||
return true;
|
||||
|
|
Loading…
Reference in a new issue