diff options
author | Brecht Van Lommel <brecht@blender.org> | 2022-10-02 16:06:34 +0300 |
---|---|---|
committer | Brecht Van Lommel <brecht@blender.org> | 2022-10-02 16:06:34 +0300 |
commit | 208b3a0472b3fb0b90132f740d8966ac386fd847 (patch) | |
tree | e51bedb4eeecd2439f92f149c7aabcf0a51ddd14 /source/blender | |
parent | 9d30adb7ebdca322e8fb15c91ef50b90dead085b (diff) |
Fix build error on Linux after font thumbnail changes
Diffstat (limited to 'source/blender')
-rw-r--r-- | source/blender/blenfont/intern/blf_thumbs.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/source/blender/blenfont/intern/blf_thumbs.c b/source/blender/blenfont/intern/blf_thumbs.c index e4eed070e24..2773c8f17fd 100644 --- a/source/blender/blenfont/intern/blf_thumbs.c +++ b/source/blender/blenfont/intern/blf_thumbs.c @@ -37,8 +37,8 @@ typedef struct UnicodeSample { char32_t sample[BLF_SAMPLE_LEN]; - char field; /* ‘OS/2’ table ulUnicodeRangeX field (1-4). */ - long mask; /* ‘OS/2’ table ulUnicodeRangeX bit mask. */ + int field; /* ‘OS/2’ table ulUnicodeRangeX field (1-4). */ + FT_ULong mask; /* ‘OS/2’ table ulUnicodeRangeX bit mask. */ } UnicodeSample; /* The seemingly arbitrary order that follows is to help quickly find the most-likely designed @@ -262,9 +262,9 @@ static const char32_t *blf_get_sample_text(FT_Face face) if (os2_table && s->field && s->mask) { /* OS/2 Table contains 4 contiguous integers of script coverage bit flags. */ const FT_ULong *unicode_range = &os2_table->ulUnicodeRange1; - const size_t index = (s->field - 1); + const int index = (s->field - 1); BLI_assert(index < 4); - if (!(unicode_range[index] & (FT_ULong)s->mask)) { + if (!(unicode_range[index] & s->mask)) { continue; } } |