about summary refs log tree commit diff
path: root/generator
diff options
context:
space:
mode:
Diffstat (limited to 'generator')
-rw-r--r--generator/pbmtext.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/generator/pbmtext.c b/generator/pbmtext.c
index 221f215e..8ae28616 100644
--- a/generator/pbmtext.c
+++ b/generator/pbmtext.c
@@ -579,7 +579,7 @@ insertCharacters(bit **        const bits,
     
         for (cursor = 0; lp.textArray[line][cursor] != '\0'; ++cursor) {
             char const currentChar = lp.textArray[line][cursor];
-            unsigned int const glyphIndex = (unsigned int) currentChar;
+            unsigned int const glyphIndex = (unsigned char) currentChar;
             struct glyph * const glyphP = fontP->glyph[glyphIndex];
             int const toprow = row + fontP->maxheight + fontP->y 
                 - glyphP->height - glyphP->y;