diff options
author | John F. Carr <jfc@mit.edu> | 1990-12-21 12:07:38 +0000 |
---|---|---|
committer | John F. Carr <jfc@mit.edu> | 1990-12-21 12:07:38 +0000 |
commit | 299206d28873e0644f98d813d1242a10da8c4a63 (patch) | |
tree | 2e2494a3c6610a35a3fa60321b38b09efc777137 /zwgc/xmark.c | |
parent | f2c3090ab8629dbca3b24a3202266ca90871fc44 (diff) |
Use unsigned char, not char, as array index.
Diffstat (limited to 'zwgc/xmark.c')
-rw-r--r-- | zwgc/xmark.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/zwgc/xmark.c b/zwgc/xmark.c index e20586f..16142c5 100644 --- a/zwgc/xmark.c +++ b/zwgc/xmark.c @@ -49,7 +49,7 @@ void xmarkSetBound(gram,x,y,which) int i,xofs,yofs; XFontStruct *font; xblock *xb; - char *s; + unsigned char *s; #ifdef MARK_DEBUG #define RETURN \ @@ -112,7 +112,7 @@ void xmarkSetBound(gram,x,y,which) RETURN; } font=get_fontst_from_fid(xb->fid); - for (i=0,s=((gram->text)+(xb->strindex)); + for (i=0,s=(unsigned char *)((gram->text)+(xb->strindex)); xofs<x && i<xb->strlen; i++,s++) { /* if font->per_char is NULL, then we should use min_bounds */ |