Index: Bio/DB/SeqFeature/Store/memory.pm =================================================================== --- Bio/DB/SeqFeature/Store/memory.pm (revision 16692) +++ Bio/DB/SeqFeature/Store/memory.pm (working copy) @@ -444,7 +444,7 @@ if (!defined $start or !defined $end or $range_type eq 'contained_in') { @bins = sort {$a<=>$b} keys %{$index}; $start = $bins[0] * BINSIZE unless defined $start; - $end = @bins == 1 ? BINSIZE : $bins[-1] * BINSIZE unless defined $end; + $end = (($bins[-1] + 1) * BINSIZE) - 1 unless defined $end; } my %seenit; my $bin_min = int $start/BINSIZE;