Fix warnings for null range in idx()

This commit is contained in:
Garth Minette 2021-01-24 23:51:52 -08:00
parent 48de08f89b
commit 1b8f28cf35
2 changed files with 2 additions and 2 deletions

View file

@ -986,7 +986,7 @@ function unique_count(list) =
function idx(list, s=0, e=-1, step=1) =
assert(is_list(list)||is_string(list), "Invalid input." )
let( ll = len(list) )
ll == 0 ? [0:1:-1] :
ll == 0 ? [0:1:ll-1] :
let(
_s = posmod(s,ll),
_e = posmod(e,ll)

View file

@ -6,7 +6,7 @@
//////////////////////////////////////////////////////////////////////
BOSL_VERSION = [2,0,541];
BOSL_VERSION = [2,0,542];
// Section: BOSL Library Version Functions