diff --git a/mwparserfromhell/parser/tokenizer.c b/mwparserfromhell/parser/tokenizer.c index df65d0e..86f2884 100644 --- a/mwparserfromhell/parser/tokenizer.c +++ b/mwparserfromhell/parser/tokenizer.c @@ -1021,7 +1021,7 @@ Tokenizer_really_parse_entity(Tokenizer* self) break; j++; } - text[i] = this; + text[i] = (char) this; self->head++; i++; }