Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Open sidebar
ensembl-gh-mirror
ensembl
Commits
316e66b5
Commit
316e66b5
authored
Oct 28, 2009
by
Andreas Kusalananda Kähäri
Browse files
Use CORE::length() rather than just length() to disambiguate.
parent
aac80749
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
5 deletions
+5
-5
modules/Bio/EnsEMBL/Slice.pm
modules/Bio/EnsEMBL/Slice.pm
+5
-5
No files found.
modules/Bio/EnsEMBL/Slice.pm
View file @
316e66b5
...
...
@@ -153,11 +153,11 @@ sub new {
throw
('
SEQ_REGION_LENGTH must be > 0
');
}
if
(
defined
(
$seq
)
&&
length
(
$seq
)
!=
(
$end
-
$start
+
1
)
)
{
throw
(
'
SEQ must be the same length as the defined LENGTH not
'
.
length
(
$seq
)
.
'
compared to
'
.
(
$end
-
$start
+
1
)
);
if
(
defined
(
$seq
)
&&
CORE::
length
(
$seq
)
!=
(
$end
-
$start
+
1
)
)
{
throw
('
SEQ must be the same length as the defined LENGTH not
'
.
CORE::
length
(
$seq
)
.
'
compared to
'
.
(
$end
-
$start
+
1
)
);
}
if
(
defined
(
$coord_system
))
{
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment