From: Adam Dickmeiss Date: Mon, 22 Jun 1998 11:33:39 +0000 (+0000) Subject: Added two type casts. X-Git-Tag: ZEBRA.1.0~195 X-Git-Url: http://git.indexdata.com/?p=idzebra-moved-to-github.git;a=commitdiff_plain;h=75b086d1cbf7d4134e599d2d3b0cd51abb34292a Added two type casts. --- diff --git a/dfa/dfa.c b/dfa/dfa.c index 5da189a..072c397 100644 --- a/dfa/dfa.c +++ b/dfa/dfa.c @@ -4,7 +4,10 @@ * Sebastian Hammer, Adam Dickmeiss * * $Log: dfa.c,v $ - * Revision 1.20 1998-06-08 14:40:44 adam + * Revision 1.21 1998-06-22 11:33:39 adam + * Added two type casts. + * + * Revision 1.20 1998/06/08 14:40:44 adam * Fixed problem with signed character(s) in regular expressions. * * Revision 1.19 1998/01/12 14:39:39 adam @@ -487,7 +490,7 @@ static int map_l_char (struct DFA_parse *parse_info) if (cp0[0] == 1 && cp0[1]) { parse_info->expr_ptr++; - parse_info->look_ch = cp0[1] & 255; + parse_info->look_ch = ((unsigned char *) cp0)[1]; return L_CHAR; } if (!parse_info->cmap) @@ -497,7 +500,7 @@ static int map_l_char (struct DFA_parse *parse_info) assert (mapto); parse_info->expr_ptr = (const unsigned char *) cp0; - parse_info->look_ch = mapto[i][0] & 255; + parse_info->look_ch = ((unsigned char **) mapto)[i][0]; logf (LOG_DEBUG, "map from %c to %d", parse_info->expr_ptr[-1], parse_info->look_ch); return L_CHAR; }