Skip to content
Snippets Groups Projects
Commit 9d4834e4 authored by Andreas Kusalananda Kähäri's avatar Andreas Kusalananda Kähäri
Browse files

Allow start > end in RangeRegistry. Patch from EG.

parent 2f4524e5
No related branches found
No related tags found
No related merge requests found
......@@ -154,15 +154,15 @@ sub check_and_register {
throw("ID, start, end arguments are required");
}
if ( $start > $end ) {
throw("start argument [$start] must be less than end argument [$end]");
}
if ( $rstart > $rend ) {
throw(
"rend [$rstart] argument must be less than rend [$rend] argument"
);
}
## if ( $start > $end ) {
## throw("start argument [$start] must be less than end argument [$end]");
## }
## if ( $rstart > $rend ) {
## throw(
## "rend [$rstart] argument must be less than rend [$rend] argument"
## );
## }
if ( $rstart > $start ) {
throw("rstart [$rstart] must be less than or equal to start [$start]");
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment