From 89450268cc7b9f0b3bd15ccc319d7d7d4cf1f373 Mon Sep 17 00:00:00 2001 From: "K.Kosako" Date: Mon, 12 Mar 2018 14:01:52 +0900 Subject: [PATCH] fix OnigType to unsigned int for escape compile time warnings --- src/ascii.c | 2 +- src/regexec.c | 2 +- src/regparse.c | 2 +- src/utf16_be.c | 2 +- src/utf16_le.c | 2 +- 5 files changed, 5 insertions(+), 5 deletions(-) diff --git a/src/ascii.c b/src/ascii.c index 92aa8ed..7483c25 100644 --- a/src/ascii.c +++ b/src/ascii.c @@ -37,7 +37,7 @@ init(void) int id; OnigEncoding enc; char* name; - OnigType t_long; + unsigned int t_long; unsigned int args[4]; OnigValue opts[4]; diff --git a/src/regexec.c b/src/regexec.c index 03fd535..f9645dc 100644 --- a/src/regexec.c +++ b/src/regexec.c @@ -5628,7 +5628,7 @@ onig_setup_builtin_monitors_by_ascii_encoded_name(void* fp /* FILE* */) int id; char* name; OnigEncoding enc; - OnigType ts[4]; + unsigned int ts[4]; OnigValue opts[4]; if (IS_NOT_NULL(fp)) diff --git a/src/regparse.c b/src/regparse.c index f38d439..548af15 100644 --- a/src/regparse.c +++ b/src/regparse.c @@ -6662,7 +6662,7 @@ parse_long(OnigEncoding enc, UChar* s, UChar* end, int sign_on, long max, long* static int parse_callout_args(int skip_mode, int cterm, UChar** src, UChar* end, - OnigType types[], OnigValue vals[], ScanEnv* env) + unsigned int types[], OnigValue vals[], ScanEnv* env) { #define MAX_CALLOUT_ARG_BYTE_LENGTH 128 diff --git a/src/utf16_be.c b/src/utf16_be.c index ebfa30c..f308968 100644 --- a/src/utf16_be.c +++ b/src/utf16_be.c @@ -38,7 +38,7 @@ init(void) int id; OnigEncoding enc; char* name; - OnigType t_long; + unsigned int t_long; unsigned int args[4]; OnigValue opts[4]; diff --git a/src/utf16_le.c b/src/utf16_le.c index bb6e3e5..4d377e5 100644 --- a/src/utf16_le.c +++ b/src/utf16_le.c @@ -36,7 +36,7 @@ init(void) int id; OnigEncoding enc; char* name; - OnigType t_long; + unsigned int t_long; unsigned int args[4]; OnigValue opts[4]; -- 2.40.0