1
0
Fork 0
mirror of https://github.com/luanti-org/luanti.git synced 2025-06-27 16:36:03 +00:00

Fix MSVC compiler warnings (#10197)

This commit is contained in:
adrido 2020-08-23 15:41:04 +02:00 committed by GitHub
parent 47948793c1
commit 3c2890692b
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 3 additions and 3 deletions

View file

@ -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;