summaryrefslogtreecommitdiff
path: root/regexec.c
diff options
context:
space:
mode:
authorNobuyoshi Nakada <[email protected]>2024-09-25 10:40:14 +0900
committerNobuyoshi Nakada <[email protected]>2024-09-25 10:40:14 +0900
commitc94ea1cccb24a41a5cd5c7e90aec04cb477b367e (patch)
treeb0c07612a28332db109fe800d8eb77976bb3e08a /regexec.c
parent509b577e0126d92f37ae45d83863c449f8666be1 (diff)
Fix size modifier for `size_t`
Diffstat (limited to 'regexec.c')
-rw-r--r--regexec.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/regexec.c b/regexec.c
index cd3f5daff5..8c6bccf546 100644
--- a/regexec.c
+++ b/regexec.c
@@ -4158,7 +4158,7 @@ match_at(regex_t* reg, const UChar* str, const UChar* end,
size_t length = (end - str) + 1;
size_t num_match_cache_points = (size_t)msa->num_cache_points * length;
#ifdef ONIG_DEBUG_MATCH_CACHE
- fprintf(stderr, "MATCH CACHE: #match cache points = %ld (length = %zu)\n", num_match_cache_points, length);
+ fprintf(stderr, "MATCH CACHE: #match cache points = %zu (length = %zu)\n", num_match_cache_points, length);
#endif
/* Overflow check */
if (num_match_cache_points / length != (size_t)msa->num_cache_points) {