$min_bucket = Maasha::Calc::min( $min_bucket, $bucket_beg );
- for ( $i = $bucket_beg; $i <= $bucket_end; $i++ )
+ for ( $i = $bucket_beg; $i < $bucket_end; $i++ )
{
$buckets[ $i ] += $block->{ 'COUNT' };
my ( $i, $s, $q, @align );
- Maasha::Common::error( "Sequence lengths don't match" ) if length ${ $s_seq } != length ${ $q_seq };
+ # Maasha::Common::error( "Sequence lengths don't match" ) if length ${ $s_seq } != length ${ $q_seq };
+
+ if ( length ${ $s_seq } != length ${ $q_seq } ) { # for unknown reasons this situation may occur - TODO
+ return wantarray ? () : [];
+ }
$offset ||= 0;