fix: Allow size_t narrowing

This commit is contained in:
Michael Carlberg 2017-01-13 01:14:50 +01:00
parent 0a24dc4912
commit 40493497de
3 changed files with 3 additions and 3 deletions

View File

@ -124,7 +124,7 @@ namespace modules {
int i{0}; int i{0};
bool prevtag{true}; bool prevtag{true};
auto mingap = std::max(1UL, format->spacing); auto mingap = std::max(1_z, format->spacing);
size_t start, end; size_t start, end;
string value{format->value}; string value{format->value};

View File

@ -31,7 +31,7 @@
#cmakedefine VERBOSE_TRACELOG #cmakedefine VERBOSE_TRACELOG
#cmakedefine DEBUG_HINTS #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_CONTROLLER{1};
static const int SIGN_PRIORITY_SCREEN{2}; static const int SIGN_PRIORITY_SCREEN{2};

View File

@ -124,7 +124,7 @@ namespace modules {
return false; return false;
} }
size_t current_group{m_keyboard->current() + 1UL}; size_t current_group = m_keyboard->current() + 1;
if (current_group >= m_keyboard->size()) { if (current_group >= m_keyboard->size()) {
current_group = 0; current_group = 0;