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:
Christian Hesse 2019-08-06 13:58:30 +02:00
parent 02cc0c6fc1
commit 53fa0d6aac

View file

@ -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;