Skip to content

Commit

Permalink
Add type casts for buf-write-uint8 to work on JVM
Browse files Browse the repository at this point in the history
  • Loading branch information
Chouser committed Mar 10, 2023
1 parent 9f6d322 commit 3dcd005
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/protocol/platform.cljc
Original file line number Diff line number Diff line change
Expand Up @@ -179,7 +179,7 @@

(defn buf-write-uint8 [buf v off]
#?(:cljs (.writeUInt8 buf v off)
:clj (do (.put buf off v) (+ off 1))))
:clj (do (.put ^ByteBuffer buf (int off) (unchecked-byte v)) (+ off 1))))

(defn buf-read-uint16-be [buf off]
(vector (+ off 2)
Expand Down

0 comments on commit 3dcd005

Please sign in to comment.