X-Git-Url: http://git.asbjorn.biz/?a=blobdiff_plain;f=lib%2Fxml.c;h=ff65c9eff917ced8154c43acf1ae7519c6164ab6;hb=6487933fe6b496bb04cd287b51b96af6b7d97058;hp=ef2638812ff7d1b524d0b70a5643e0d925c2c815;hpb=2ddfa640af28b592ecf4295f0b1b7b43c923f707;p=swftools.git diff --git a/lib/xml.c b/lib/xml.c index ef26388..ff65c9e 100644 --- a/lib/xml.c +++ b/lib/xml.c @@ -221,7 +221,7 @@ int xml_parse(reader_t*reader, xmlconsumer_t*out) /* inner loop */ do { - state = new_state[old=state][group[buffer[pos++]]]; + state = new_state[old=state][group[(unsigned char)buffer[pos++]]]; } while(state>=0); switch(state) {