Skip to content

Commit

Permalink
Lets see if this fixes the CI issue
Browse files Browse the repository at this point in the history
  • Loading branch information
daid committed Sep 22, 2024
1 parent b8f1bef commit 091f679
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions src/graphics/renderTarget.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -608,7 +608,7 @@ void RenderTarget::fillCircle(glm::vec2 center, float radius, glm::u8vec4 color)

void RenderTarget::fillRect(const sp::Rect& rect, glm::u8vec4 color)
{
if (vertex_data.size() >= std::numeric_limits<uint16_t>::max() - 4)
if (vertex_data.size() >= std::numeric_limits<uint16_t>::max() - 4U)
finish();

auto n = vertex_data.size();
Expand All @@ -633,7 +633,7 @@ void RenderTarget::drawTexturedQuad(std::string_view texture,
glm::u8vec4 color)
{
auto info = getTextureInfo(texture);
if (info.texture || vertex_data.size() >= std::numeric_limits<uint16_t>::max() - 4)
if (info.texture || vertex_data.size() >= std::numeric_limits<uint16_t>::max() - 4U)
finish();
auto& uv_rect = info.uv_rect;

Expand Down Expand Up @@ -758,7 +758,7 @@ void RenderTarget::drawText(sp::Rect rect, const sp::Font::PreparedFontString& p
p2 += rect.position;
p3 += rect.position;

if (vertex_data.size() >= std::numeric_limits<uint16_t>::max() - 4)
if (vertex_data.size() >= std::numeric_limits<uint16_t>::max() - 4U)
finish();

auto n = vertex_data.size();
Expand Down Expand Up @@ -829,7 +829,7 @@ void RenderTarget::drawRotatedText(glm::vec2 center, float rotation, std::string
glm::vec2 p2 = mat * glm::vec2{left, bottom} + center;
glm::vec2 p3 = mat * glm::vec2{right, bottom} + center;

if (vertex_data.size() >= std::numeric_limits<uint16_t>::max() - 4)
if (vertex_data.size() >= std::numeric_limits<uint16_t>::max() - 4U)
finish();

auto n = vertex_data.size();
Expand Down Expand Up @@ -862,7 +862,7 @@ void RenderTarget::drawStretched(sp::Rect rect, std::string_view texture, glm::u
void RenderTarget::drawStretchedH(sp::Rect rect, std::string_view texture, glm::u8vec4 color)
{
auto info = getTextureInfo(texture);
if (info.texture || vertex_data.size() >= std::numeric_limits<uint16_t>::max() - 8)
if (info.texture || vertex_data.size() >= std::numeric_limits<uint16_t>::max() - 8U)
finish();
auto& uv_rect = info.uv_rect;

Expand Down Expand Up @@ -911,7 +911,7 @@ void RenderTarget::drawStretchedH(sp::Rect rect, std::string_view texture, glm::
void RenderTarget::drawStretchedV(sp::Rect rect, std::string_view texture, glm::u8vec4 color)
{
auto info = getTextureInfo(texture);
if (info.texture || vertex_data.size() >= std::numeric_limits<uint16_t>::max() - 8)
if (info.texture || vertex_data.size() >= std::numeric_limits<uint16_t>::max() - 8U)
finish();
auto& uv_rect = info.uv_rect;

Expand Down Expand Up @@ -960,7 +960,7 @@ void RenderTarget::drawStretchedV(sp::Rect rect, std::string_view texture, glm::
void RenderTarget::drawStretchedHV(sp::Rect rect, float corner_size, std::string_view texture, glm::u8vec4 color)
{
auto info = getTextureInfo(texture);
if (info.texture || vertex_data.size() >= std::numeric_limits<uint16_t>::max() - 16)
if (info.texture || vertex_data.size() >= std::numeric_limits<uint16_t>::max() - 16U)
finish();
auto& uv_rect = info.uv_rect;

Expand Down Expand Up @@ -1052,7 +1052,7 @@ void RenderTarget::drawStretchedHVClipped(sp::Rect rect, sp::Rect clip_rect, flo
return;

auto info = getTextureInfo(texture);
if (info.texture || vertex_data.size() >= std::numeric_limits<uint16_t>::max() - 16)
if (info.texture || vertex_data.size() >= std::numeric_limits<uint16_t>::max() - 16U)
finish();
const auto& uv_rect = info.uv_rect;

Expand Down

0 comments on commit 091f679

Please sign in to comment.