summaryrefslogtreecommitdiff
path: root/src/fontpack.h
diff options
context:
space:
mode:
authorJaakko Keränen <jaakko.keranen@iki.fi>2021-10-20 16:32:28 +0300
committerJaakko Keränen <jaakko.keranen@iki.fi>2021-10-20 16:32:28 +0300
commit7a4f4db86de9ed610b9968f905f860d3b6272e61 (patch)
tree2dcc8e3f65f41103855ba71a8c90e14827bdd831 /src/fontpack.h
parent3a439789b7f84675a84d13bd89b17c5e97f04961 (diff)
iOS: Fixing the build
Diffstat (limited to 'src/fontpack.h')
-rw-r--r--src/fontpack.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/fontpack.h b/src/fontpack.h
index 5d592822..d86de945 100644
--- a/src/fontpack.h
+++ b/src/fontpack.h
@@ -131,7 +131,8 @@ struct Impl_FontSpec {
131}; 131};
132 132
133iLocalDef int scaleType_FontSpec(enum iFontSize sizeId) { 133iLocalDef int scaleType_FontSpec(enum iFontSize sizeId) {
134 return sizeId / contentRegular_FontSize; 134 iAssert(sizeId >= 0 && sizeId < max_FontSize);
135 return sizeId < contentRegular_FontSize ? 0 : 1;
135} 136}
136 137
137/*----------------------------------------------------------------------------------------------*/ 138/*----------------------------------------------------------------------------------------------*/