aboutsummaryrefslogtreecommitdiffstats
path: root/regexec.c
diff options
context:
space:
mode:
authorTSUYUSATO Kitsune <make.just.on@gmail.com>2023-05-13 10:04:28 +0900
committerGitHub <noreply@github.com>2023-05-13 10:04:28 +0900
commit93dd13d97a62fa1af80926e89d0ad9fb4570d539 (patch)
tree9ba34b099060dffc5934d707b4ea3404cc98eb45 /regexec.c
parentc803e92d6638c985d7ec96804ac4c83b816011bd (diff)
downloadruby-93dd13d97a62fa1af80926e89d0ad9fb4570d539.tar.gz
Remove warnings and errors in `regexec.c` with `ONIG_DEBUG_...` macros (#7803)
Diffstat (limited to 'regexec.c')
-rw-r--r--regexec.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/regexec.c b/regexec.c
index e542ce7e21..81028138e0 100644
--- a/regexec.c
+++ b/regexec.c
@@ -1978,7 +1978,7 @@ onig_print_statistics(FILE* f)
#ifdef ONIG_DEBUG_MATCH
-static char *
+static const char *
stack_type_str(int stack_type)
{
switch (stack_type) {
@@ -2098,8 +2098,8 @@ reset_match_cache_on_null_check(regex_t* reg, const UChar* pstart, const UChar*
match_cache_point_end_bit = match_cache_point_end & 7;
#ifdef ONIG_DEBUG_MATCH_CACHE
- fprintf(stderr, "MATCH CACHE: reset start %ld (%ld index=%ld bits=%d)\n", match_cache_point_start, cache_point_start, match_cache_point_start_index, match_cache_point_start_bits);
- fprintf(stderr, "MATCH CACHE: reset end %ld (%ld index=%ld bits=%d)\n", match_cache_point_end, cache_point_end, match_cache_point_end_index, match_cache_point_end_bits);
+ fprintf(stderr, "MATCH CACHE: reset start %ld (%ld index=%ld bit=%d)\n", match_cache_point_start, cache_point_start, match_cache_point_start_index, match_cache_point_start_bit);
+ fprintf(stderr, "MATCH CACHE: reset end %ld (%ld index=%ld bit=%d)\n", match_cache_point_end, cache_point_end, match_cache_point_end_index, match_cache_point_end_bit);
#endif
if (match_cache_point_start_index == match_cache_point_end_index) {