mirror of
https://github.com/ruby/ruby.git
synced 2025-08-15 13:39:04 +02:00
Fix size modifier for size_t
This commit is contained in:
parent
509b577e01
commit
c94ea1cccb
1 changed files with 1 additions and 1 deletions
|
@ -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) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue