Skip to content

Commit dc0e93e

Browse files
committed
ryml: no need to upcast to ^Long for annotation
1 parent 5ef0dd8 commit dc0e93e

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

core/src/yamlscript/parser.clj

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -249,11 +249,11 @@
249249
masks (Rapidyaml/mkIntBuffer needed)
250250
_ (.parseYsToEvtBuf parser srcbuffer masks)
251251
get-str (fn [i]
252-
(let [off (.get masks ^Long (inc i))
253-
len (.get masks ^Long (+ i 2))]
252+
(let [off (.get masks ^int (inc i))
253+
len (.get masks ^int (+ i 2))]
254254
(.toString
255255
(.decode StandardCharsets/UTF_8
256-
(.slice srcbuffer (int off) (int len))))))]
256+
(.slice srcbuffer off len)))))]
257257

258258
(loop [i 0, tag nil, anchor nil, events []]
259259
(if (< i needed)

0 commit comments

Comments
 (0)