Skip to content

Commit

Permalink
fixed conditional build to encode-float32 for sbcl
Browse files Browse the repository at this point in the history
  • Loading branch information
byulparan committed Jan 24, 2024
1 parent f647738 commit dbe5040
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 dbe5040

Please sign in to comment.