aboutsummaryrefslogtreecommitdiff
path: root/iconvdata/gap.pl
diff options
context:
space:
mode:
Diffstat (limited to 'iconvdata/gap.pl')
-rw-r--r--iconvdata/gap.pl6
1 files changed, 3 insertions, 3 deletions
diff --git a/iconvdata/gap.pl b/iconvdata/gap.pl
index 8d595e327d..2a06adc36c 100644
--- a/iconvdata/gap.pl
+++ b/iconvdata/gap.pl
@@ -5,12 +5,12 @@ while (<>) {
if ($u - $last > 6) {
if ($last != 0) {
printf (" { start: 0x%04x, end: 0x%04x, idx: %5d },\n",
- $first, $last, $idx - $first);
- $idx += $last - $first + 1;
+ $first, $last, $idx);
+ $idx -= $u - $last - 1;
}
$first=$u;
}
$last=$u;
}
printf (" { start: 0x%04x, end: 0x%04x, idx: %5d },\n",
- $first, $last, $idx - $first);
+ $first, $last, $idx);