Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

bytevector-ieee-double-native-set! throws an error when the value is exact integer #823

Open
ktakashi opened this issue May 30, 2018 · 0 comments

Comments

@ktakashi
Copy link

This piece of code throws an error.

(define bv (make-bytevector 8))
(bytevector-ieee-single-native-set! v 0 1)

whilst this is okay.

(define bv (make-bytevector 8))
(bytevector-ieee-single-native-set! v 0 1.0)

The simplest fix, I think, could be adding (define x (inexact x)) (or adding let) in the definition of bytevector-ieee-double-native-set!.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants