mirror of
https://github.com/genodelabs/genode.git
synced 2025-01-19 03:06:39 +00:00
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:
parent
80318b9ae0
commit
90b20b4daf
@ -263,7 +263,7 @@ class Nitpicker::Gui_session : public Session_object<Gui::Session>,
|
|||||||
|
|
||||||
bool uses_alpha() const override { return _texture.valid() && _uses_alpha; }
|
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(); }
|
bool origin_pointer() const override { return _domain && _domain->origin_pointer(); }
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user