fix build warnings

This commit is contained in:
Raphael Robatsch 2021-11-06 16:26:12 +01:00
parent ad8c9bc20c
commit 47ab67a52a
2 changed files with 2 additions and 2 deletions

View File

@ -201,7 +201,7 @@ void Bar::renderTags()
tag.state & TagState::Active ? colorActive : colorInactive,
tag.state & TagState::Urgent);
renderComponent(tag.component);
auto indicators = std::min(tag.numClients, _bufs->height/2);
auto indicators = std::min(tag.numClients, static_cast<int>(_bufs->height/2));
for (auto ind = 0; ind < indicators; ind++) {
auto w = ind == tag.focusedClient ? 7 : 1;
cairo_move_to(_painter, tag.component.x, ind*2+0.5);

View File

@ -36,7 +36,7 @@ class ShmBuffer {
int _current {0};
MemoryMapping _mapping;
public:
int width, height, stride;
uint32_t width, height, stride;
explicit ShmBuffer(int width, int height, wl_shm_format format);
uint8_t* data();