diff options
author | Jörg Frings-Fürst <debian@jff-webhosting.net> | 2016-09-02 21:24:35 +0200 |
---|---|---|
committer | Jörg Frings-Fürst <debian@jff-webhosting.net> | 2016-09-02 21:24:35 +0200 |
commit | 7a91eee2e8f26c044c387c9983cde705b7d75482 (patch) | |
tree | d8d05b34e540ea8025d27516be01b652269e4785 /src/regcomp.c | |
parent | 03b7eafcc5df69453f7407103561546f2edf87d1 (diff) | |
parent | 4abcda3c3b7d9cb44036840ec0af01d5294dedc5 (diff) |
Merge tag 'upstream/6.1.1'
Upstream version 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 |