aboutsummaryrefslogtreecommitdiff
path: root/src/client/fontengine.h
diff options
context:
space:
mode:
authoradrido <robots_only_adrido@gmx.com>2020-08-23 15:41:04 +0200
committerGitHub <noreply@github.com>2020-08-23 15:41:04 +0200
commit3c2890692bb4c292023a8260cf9ce70f82b2e780 (patch)
treeeae073fc93ccf87a990ed3b85764ef9c93dea098 /src/client/fontengine.h
parent47948793c16fc293c1d6b4ccee05421bc0864360 (diff)
downloadminetest-3c2890692bb4c292023a8260cf9ce70f82b2e780.tar.gz
minetest-3c2890692bb4c292023a8260cf9ce70f82b2e780.tar.bz2
minetest-3c2890692bb4c292023a8260cf9ce70f82b2e780.zip
Fix MSVC compiler warnings (#10197)
Diffstat (limited to 'src/client/fontengine.h')
-rw-r--r--src/client/fontengine.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/client/fontengine.h b/src/client/fontengine.h
index 865b2d3ff..c6efa0df4 100644
--- a/src/client/fontengine.h
+++ b/src/client/fontengine.h
@@ -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;