1
0
Fork 0
mirror of https://github.com/luanti-org/luanti.git synced 2025-07-22 17:18:39 +00:00

Fix some (MSVC) compiler warnings

This commit is contained in:
Lars Mueller 2025-04-04 17:09:12 +02:00 committed by Lars Müller
parent 695d526764
commit e1143783e5
8 changed files with 13 additions and 15 deletions

View file

@ -166,7 +166,7 @@ public:
inline void irrGlObjectLabel(GLenum identifier, GLuint name, const char *label)
{
if (KHRDebugSupported) {
u32 len = strlen(label);
u32 len = static_cast<u32>(strlen(label));
// Since our texture strings can get quite long we also truncate
// to a hardcoded limit of 82
len = std::min(len, std::min(MaxLabelLength, 82U));