mirror of
https://github.com/BelfrySCAD/BOSL2.git
synced 2024-12-29 16:29:40 +00:00
Fix warnings for null range in idx()
This commit is contained in:
parent
48de08f89b
commit
1b8f28cf35
2 changed files with 2 additions and 2 deletions
|
@ -986,7 +986,7 @@ function unique_count(list) =
|
||||||
function idx(list, s=0, e=-1, step=1) =
|
function idx(list, s=0, e=-1, step=1) =
|
||||||
assert(is_list(list)||is_string(list), "Invalid input." )
|
assert(is_list(list)||is_string(list), "Invalid input." )
|
||||||
let( ll = len(list) )
|
let( ll = len(list) )
|
||||||
ll == 0 ? [0:1:-1] :
|
ll == 0 ? [0:1:ll-1] :
|
||||||
let(
|
let(
|
||||||
_s = posmod(s,ll),
|
_s = posmod(s,ll),
|
||||||
_e = posmod(e,ll)
|
_e = posmod(e,ll)
|
||||||
|
|
|
@ -6,7 +6,7 @@
|
||||||
//////////////////////////////////////////////////////////////////////
|
//////////////////////////////////////////////////////////////////////
|
||||||
|
|
||||||
|
|
||||||
BOSL_VERSION = [2,0,541];
|
BOSL_VERSION = [2,0,542];
|
||||||
|
|
||||||
|
|
||||||
// Section: BOSL Library Version Functions
|
// Section: BOSL Library Version Functions
|
||||||
|
|
Loading…
Reference in a new issue