all repos — fluxbox @ 53fa0d6aaca3eb8a1fe8011e0e3d53cb85e1a772

custom fork of the fluxbox windowmanager

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)’
Christian Hesse mail@eworm.de
commit

53fa0d6aaca3eb8a1fe8011e0e3d53cb85e1a772

parent

02cc0c6fc1d02fa6daa72056d36021eedc33ffac

1 files changed, 1 insertions(+), 1 deletions(-)

jump to
M src/FbTk/XftFontImp.ccsrc/FbTk/XftFontImp.cc

@@ -78,7 +78,7 @@ // yields either some negative or some 'wrapped' values ('integer

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