mirror of
https://github.com/polybar/polybar.git
synced 2024-11-18 13:55:11 -05:00
fix: Allow size_t narrowing
This commit is contained in:
parent
0a24dc4912
commit
40493497de
3 changed files with 3 additions and 3 deletions
|
@ -124,7 +124,7 @@ namespace modules {
|
|||
int i{0};
|
||||
bool prevtag{true};
|
||||
|
||||
auto mingap = std::max(1UL, format->spacing);
|
||||
auto mingap = std::max(1_z, format->spacing);
|
||||
|
||||
size_t start, end;
|
||||
string value{format->value};
|
||||
|
|
|
@ -31,7 +31,7 @@
|
|||
#cmakedefine VERBOSE_TRACELOG
|
||||
#cmakedefine DEBUG_HINTS
|
||||
|
||||
static const size_t EVENT_SIZE{64UL};
|
||||
static const size_t EVENT_SIZE = 64;
|
||||
|
||||
static const int SIGN_PRIORITY_CONTROLLER{1};
|
||||
static const int SIGN_PRIORITY_SCREEN{2};
|
||||
|
|
|
@ -124,7 +124,7 @@ namespace modules {
|
|||
return false;
|
||||
}
|
||||
|
||||
size_t current_group{m_keyboard->current() + 1UL};
|
||||
size_t current_group = m_keyboard->current() + 1;
|
||||
|
||||
if (current_group >= m_keyboard->size()) {
|
||||
current_group = 0;
|
||||
|
|
Loading…
Reference in a new issue