summaryrefslogtreecommitdiff
path: root/src/regcomp.c
diff options
context:
space:
mode:
authorJörg Frings-Fürst <debian@jff-webhosting.net>2016-09-02 21:24:33 +0200
committerJörg Frings-Fürst <debian@jff-webhosting.net>2016-09-02 21:24:33 +0200
commit4abcda3c3b7d9cb44036840ec0af01d5294dedc5 (patch)
tree323ab95bd950955d0e6ff6057861bd9f02118212 /src/regcomp.c
parenta76fa337cc657dbe669ffb8dbdac606d4d6616f1 (diff)
New upstream version 6.1.1upstream/6.1.1
Diffstat (limited to 'src/regcomp.c')
-rw-r--r--src/regcomp.c4
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