Skip to content

Commit fbd8bce

Browse files
committed
0.1 -> 0 etc. when calling -nth on vector
1 parent e3cd744 commit fbd8bce

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/main/cljs/cljs/core.cljs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12385,11 +12385,11 @@ reduces them without incurring seq initialization"
1238512385
IIndexed
1238612386
(-nth [coll n]
1238712387
(if (and (<= 0 n) (< n (alength array)))
12388-
(aget array n)
12388+
(aget array (int n))
1238912389
(throw (js/Error. (str "No item " n " in vector of length " (alength array))))))
1239012390
(-nth [coll n not-found]
1239112391
(if (and (<= 0 n) (< n (alength array)))
12392-
(aget array n)
12392+
(aget array (int n))
1239312393
not-found))
1239412394

1239512395
ILookup

0 commit comments

Comments
 (0)