diff options
author | Mattias Andrée <maandree@kth.se> | 2021-08-17 17:44:35 +0200 |
---|---|---|
committer | Mattias Andrée <maandree@kth.se> | 2021-08-17 17:44:35 +0200 |
commit | 6b8fc61b772b394d7a205531b492101c519dc47d (patch) | |
tree | 85d441e2de4d57e9432a5d0173aa48c214ebb39c /libskrift_apply_glyph.c | |
parent | m (diff) | |
download | libskrift-6b8fc61b772b394d7a205531b492101c519dc47d.tar.gz libskrift-6b8fc61b772b394d7a205531b492101c519dc47d.tar.bz2 libskrift-6b8fc61b772b394d7a205531b492101c519dc47d.tar.xz |
Add support for gzip compression and prepare for PSF support
Signed-off-by: Mattias Andrée <maandree@kth.se>
Diffstat (limited to '')
-rw-r--r-- | libskrift_apply_glyph.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libskrift_apply_glyph.c b/libskrift_apply_glyph.c index 6e61732..4cf5afc 100644 --- a/libskrift_apply_glyph.c +++ b/libskrift_apply_glyph.c @@ -53,7 +53,7 @@ libskrift_apply_glyph(LIBSKRIFT_CONTEXT *ctx, const struct libskrift_glyph *glyp const uint32_t u32 = 0x01020304L; const uint64_t u64 = 0x0102030405060708LL; - if (image->format == LIBSKRIFT_RAW || (unsigned int)image->format > (unsigned int)LEN(libskrift_format_settings)) { + if (image->format == LIBSKRIFT_RAW || (unsigned int)image->format > (unsigned int)ELEMSOF(libskrift_format_settings)) { errno = EINVAL; return -1; } |