avoid a compiler warning

This commit is contained in:
Matthew Flatt 2018-02-26 14:48:05 -07:00
parent 59ef254318
commit 61fffa4646

View File

@ -198,7 +198,7 @@ regcomp(char *expstr, rxpos exp, int explen, int pcre, Scheme_Object *handler)
regbackdepends = NULL;
regerrorproc = handler;
regerrorval = NULL;
regc(MAGIC);
regc((char)MAGIC);
if (reg(0, &flags, 0, 0, PARSE_CASE_SENS | PARSE_SINGLE_LINE | (pcre ? PARSE_PCRE : 0)) == 0) {
if (regerrorval)
return NULL;