summaryrefslogtreecommitdiff
path: root/raster/glyphcache.c
diff options
context:
space:
mode:
authorSebastian Rasmussen <sebras@hotmail.com>2008-04-20 12:20:52 +0200
committerSebastian Rasmussen <sebras@hotmail.com>2008-04-20 12:20:52 +0200
commitd96fc32d1dcae224b320918c96153574fbd5ed5e (patch)
treed9d972a39fc66f998059b585240ed43d395e07ef /raster/glyphcache.c
parent704339802c88bc470187bd77c4680d19108dab0b (diff)
downloadmupdf-d96fc32d1dcae224b320918c96153574fbd5ed5e.tar.xz
Adhere to common idiom when not encoundering error.
Diffstat (limited to 'raster/glyphcache.c')
-rw-r--r--raster/glyphcache.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/raster/glyphcache.c b/raster/glyphcache.c
index 41de3b73..e2d93bc9 100644
--- a/raster/glyphcache.c
+++ b/raster/glyphcache.c
@@ -91,7 +91,7 @@ fz_newglyphcache(fz_glyphcache **arenap, int slots, int size)
arena->load = 0;
arena->used = 0;
- return nil;
+ return fz_okay;
cleanup:
fz_free(arena->hash);
@@ -344,7 +344,7 @@ fz_renderglyph(fz_glyphcache *arena, fz_glyph *glyph, fz_font *font, int cid, fz
ghits++;
- return nil;
+ return fz_okay;
}
gmisses++;
@@ -359,7 +359,7 @@ fz_renderglyph(fz_glyphcache *arena, fz_glyph *glyph, fz_font *font, int cid, fz
size = glyph->w * glyph->h;
if (size > arena->size / 6)
- return nil;
+ return fz_okay;
while (arena->load > arena->slots * 75 / 100)
{
@@ -388,6 +388,6 @@ fz_renderglyph(fz_glyphcache *arena, fz_glyph *glyph, fz_font *font, int cid, fz
hashinsert(arena, &key, val);
- return nil;
+ return fz_okay;
}