Skip to content

Commit

Permalink
Merge pull request #21 from byulparan/develop
Browse files Browse the repository at this point in the history
Fix conditional build to `encode-float32` for sbcl
  • Loading branch information
zzkt authored Jan 27, 2024
2 parents f647738 + dbe5040 commit 2c7076d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion osc.lisp
Original file line number Diff line number Diff line change
Expand Up @@ -356,7 +356,7 @@
(defun encode-float32 (f)
"Encode an ieee754 float as a 4 byte vector."
#+sbcl (encode-int32 (sb-kernel:single-float-bits f))
(encode-int32 (ieee-floats:encode-float32 f)))
#-sbcl (encode-int32 (ieee-floats:encode-float32 f)))

(defun decode-float32 (v)
"Convert a vector of 4 bytes in network byte order into an ieee754 float."
Expand Down

0 comments on commit 2c7076d

Please sign in to comment.