Permalink
Browse files

Fix loop autobox warning

  • Loading branch information...
1 parent 5b2daac commit fa643d4cd8d7f701e17b562afdb215c8306e9da3 @amalloy committed Mar 27, 2012
Showing with 1 addition and 1 deletion.
  1. +1 −1 src/gloss/data/bytes/core.clj
@@ -170,7 +170,7 @@
(if (>= offset n)
(ByteBuffer/wrap ary)
(let [buf ^ByteBuffer (first bytes)
- num-bytes (min (.remaining buf) (- n offset))]
+ num-bytes (long (min (.remaining buf) (- n offset)))]
(-> buf duplicate (.get ary offset num-bytes))
(recur (+ offset num-bytes) (rest bytes))))))))))

0 comments on commit fa643d4

Please sign in to comment.