From a0b2915e65f5aaa9b5e3f0cee1eca1f9cbb2b4f5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Henrik=20Grubbstr=C3=B6m=20=28Grubba=29?= <grubba@grubba.org> Date: Mon, 22 Jun 1998 18:41:38 +0200 Subject: [PATCH] Fixed minor 8bit bug. Rev: src/modules/Image/encodings/pnm.c:1.8 --- src/modules/Image/encodings/pnm.c | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/src/modules/Image/encodings/pnm.c b/src/modules/Image/encodings/pnm.c index de8863fb14..6a06b1ff88 100644 --- a/src/modules/Image/encodings/pnm.c +++ b/src/modules/Image/encodings/pnm.c @@ -1,9 +1,9 @@ -/* $Id: pnm.c,v 1.7 1998/03/03 23:30:17 hubbe Exp $ */ +/* $Id: pnm.c,v 1.8 1998/06/22 16:41:38 grubba Exp $ */ /* **! module Image **! note -**! $Id: pnm.c,v 1.7 1998/03/03 23:30:17 hubbe Exp $ +**! $Id: pnm.c,v 1.8 1998/06/22 16:41:38 grubba Exp $ **! submodule PNM **! **! This submodule keeps the PNM encode/decode capabilities @@ -49,7 +49,7 @@ #include "stralloc.h" #include "global.h" -RCSID("$Id: pnm.c,v 1.7 1998/03/03 23:30:17 hubbe Exp $"); +RCSID("$Id: pnm.c,v 1.8 1998/06/22 16:41:38 grubba Exp $"); #include "pike_macros.h" #include "object.h" #include "constants.h" @@ -73,7 +73,7 @@ static INLINE unsigned char getnext(struct pike_string *s,INT32 *pos) { if (*pos>=s->len) return 0; if (s->str[(*pos)]=='#') - for (;*pos<s->len && ISSPACE(s->str[*pos]);(*pos)++); + for (;*pos<s->len && ISSPACE(((unsigned char *)s->str)[*pos]);(*pos)++); return s->str[(*pos)++]; } @@ -93,7 +93,7 @@ static INLINE unsigned char getnext_skip_comment(struct pike_string *s,INT32 *po static INLINE void skipwhite(struct pike_string *s,INT32 *pos) { while (*pos<s->len && - ( ISSPACE(s->str[*pos]) || + ( ISSPACE(((unsigned char *)s->str)[*pos]) || s->str[*pos]=='#')) getnext_skip_comment(s,pos); } -- GitLab