mirror of
https://github.com/luanti-org/luanti.git
synced 2025-11-09 03:25:28 +01:00
Fix some (MSVC) compiler warnings
This commit is contained in:
committed by
Lars Müller
parent
695d526764
commit
e1143783e5
@@ -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));
|
||||
|
||||
Reference in New Issue
Block a user