From 5e9f98b15c11e272af1b7ade5da873446d61ba1c Mon Sep 17 00:00:00 2001 From: Alexander Wilms Date: Wed, 10 Jan 2024 00:23:24 +0000 Subject: [PATCH] Resolve intentionality issues --- client/renderSDL/SDL_Extensions.cpp | 4 ++-- lib/mapping/CMapHeader.cpp | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/client/renderSDL/SDL_Extensions.cpp b/client/renderSDL/SDL_Extensions.cpp index 69818c866..ae6b4c504 100644 --- a/client/renderSDL/SDL_Extensions.cpp +++ b/client/renderSDL/SDL_Extensions.cpp @@ -672,8 +672,8 @@ void scaleSurfaceFastInternal(SDL_Surface *surf, SDL_Surface *ret) for(int x = 0; x < ret->w; x++) { //coordinates we want to calculate - int origX = static_cast(floor(factorX * x)); - int origY = static_cast(floor(factorY * y)); + auto origX = static_cast(floor(factorX * x)); + auto origY = static_cast(floor(factorY * y)); // Get pointers to source pixels uint8_t *srcPtr = (uint8_t*)surf->pixels + origY * surf->pitch + origX * bpp; diff --git a/lib/mapping/CMapHeader.cpp b/lib/mapping/CMapHeader.cpp index eba1f124c..0432d75f6 100644 --- a/lib/mapping/CMapHeader.cpp +++ b/lib/mapping/CMapHeader.cpp @@ -141,8 +141,8 @@ void CMapHeader::registerMapStrings() VLC->generaltexth->addSubContainer(*this); //get supported languages. Assuming that translation containing most strings is the base language - std::set mapLanguages; - std::set mapBaseLanguages; + std::set> mapLanguages; + std::set> mapBaseLanguages; int maxStrings = 0; for(auto & translation : translations.Struct()) {