From: K.Kosako Date: Mon, 26 Feb 2018 13:02:09 +0000 (+0900) Subject: escape warning for Mac OSX X-Git-Tag: v6.8.0~146 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=a8199a20e694a32a67354439336857cfa89ee164;p=onig escape warning for Mac OSX --- diff --git a/sample/count.c b/sample/count.c index 7e0d320..4afc2df 100644 --- a/sample/count.c +++ b/sample/count.c @@ -59,7 +59,7 @@ test(OnigEncoding enc, char* in_pattern, char* in_str) } slot = 0; - r = onig_get_callout_data_by_tag(reg, mp, tag, tag + tag_len, slot, 0, &val); + r = onig_get_callout_data_by_tag(reg, mp, (UChar* )tag, (UChar* )tag + tag_len, slot, 0, &val); if (r != ONIG_NORMAL) goto err; fprintf(stdout, "COUNT[x]: %ld\n", val.l);