mirror of
https://github.com/luanti-org/luanti.git
synced 2025-10-12 16:15:20 +02:00
Fix MSVC compiler warnings (#10197)
This commit is contained in:
@@ -48,7 +48,7 @@ struct FontSpec {
|
||||
|
||||
u16 getHash()
|
||||
{
|
||||
return (mode << 2) | (bold << 1) | italic;
|
||||
return (mode << 2) | (static_cast<u8>(bold) << 1) | static_cast<u8>(italic);
|
||||
}
|
||||
|
||||
unsigned int size;
|
||||
|
Reference in New Issue
Block a user