aboutsummaryrefslogtreecommitdiff
path: root/src/client
diff options
context:
space:
mode:
Diffstat (limited to 'src/client')
-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;