From 53fa0d6aaca3eb8a1fe8011e0e3d53cb85e1a772 Mon Sep 17 00:00:00 2001 From: Christian Hesse Date: Tue, 6 Aug 2019 13:58:30 +0200 Subject: [PATCH] explicitly expect unsigned int MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 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)’ --- src/FbTk/XftFontImp.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/FbTk/XftFontImp.cc b/src/FbTk/XftFontImp.cc index 9c09a5c8..7f1fb623 100644 --- a/src/FbTk/XftFontImp.cc +++ b/src/FbTk/XftFontImp.cc @@ -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(textWidth("WW", 2), 1); m_maxlength = 0x8000 / tw; return true;