diff --git a/src/graphics/draw/MessageRenderer.cpp b/src/graphics/draw/MessageRenderer.cpp index 7d10f11bc..1d72d4ed1 100644 --- a/src/graphics/draw/MessageRenderer.cpp +++ b/src/graphics/draw/MessageRenderer.cpp @@ -422,7 +422,7 @@ void drawTextMessageFrame(OLEDDisplay *display, OLEDDisplayUiState *state, int16 std::vector isMine; // track alignment std::vector isHeader; // track header lines std::vector ackForLine; - const size_t estimatedLines = std::max(filtered.size(), 1U) * 3U; + const size_t estimatedLines = std::max(filtered.size(), size_t{1}) * size_t{3}; allLines.reserve(estimatedLines); isMine.reserve(estimatedLines); isHeader.reserve(estimatedLines);