nitpicker: Fix unsigned long to unsigned int cast.

The "unsigned Nitpicker::Gui_session::layer()" function returns
~0UL. This prompts clang to produce a warning about implicit unsigned
long to unsigned int conversion. Fix it by returning ~0U instead of
~0UL.

Issue #3985
This commit is contained in:
Piotr Tworek 2021-01-12 00:36:06 +01:00 committed by Norman Feske
parent 80318b9ae0
commit 90b20b4daf

View File

@ -263,7 +263,7 @@ class Nitpicker::Gui_session : public Session_object<Gui::Session>,
bool uses_alpha() const override { return _texture.valid() && _uses_alpha; }
unsigned layer() const override { return _domain ? _domain->layer() : ~0UL; }
unsigned layer() const override { return _domain ? _domain->layer() : ~0U; }
bool origin_pointer() const override { return _domain && _domain->origin_pointer(); }