From a8199a20e694a32a67354439336857cfa89ee164 Mon Sep 17 00:00:00 2001 From: "K.Kosako" Date: Mon, 26 Feb 2018 22:02:09 +0900 Subject: [PATCH] escape warning for Mac OSX --- sample/count.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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); -- 2.40.0