diff options
author | Jörg Frings-Fürst <debian@jff-webhosting.net> | 2016-09-02 21:24:33 +0200 |
---|---|---|
committer | Jörg Frings-Fürst <debian@jff-webhosting.net> | 2016-09-02 21:24:33 +0200 |
commit | 4abcda3c3b7d9cb44036840ec0af01d5294dedc5 (patch) | |
tree | 323ab95bd950955d0e6ff6057861bd9f02118212 /src/regcomp.c | |
parent | a76fa337cc657dbe669ffb8dbdac606d4d6616f1 (diff) |
New upstream version 6.1.1upstream/6.1.1
Diffstat (limited to 'src/regcomp.c')
-rw-r--r-- | src/regcomp.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/regcomp.c b/src/regcomp.c index 5c0f21f..0235a9f 100644 --- a/src/regcomp.c +++ b/src/regcomp.c @@ -4031,12 +4031,12 @@ distance_value(MinMaxLen* mm) 11, 11, 11, 11, 11, 10, 10, 10, 10, 10 }; - int d; + OnigLen d; if (mm->max == ONIG_INFINITE_DISTANCE) return 0; d = mm->max - mm->min; - if (d < (int )(sizeof(dist_vals)/sizeof(dist_vals[0]))) + if (d < (OnigLen )(sizeof(dist_vals)/sizeof(dist_vals[0]))) /* return dist_vals[d] * 16 / (mm->min + 12); */ return (int )dist_vals[d]; else |