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

Fix bug where Vec<f32> would be converted to a non-flat float array in ocaml #144

Merged
merged 2 commits into from
Mar 29, 2024

Conversation

gridbugs
Copy link
Contributor

This changes the treatment of Vec<f32> to be the same as that of Vec<f64> and adds some tests creating Vecs in rust and then indexing into the resulting arrays in ocaml.

This adds tests which generate arrays in rust and then index into them
from ocaml. The case for `float array` and `floatarray` from `Vec<f32>`
will fail due to these being represented as flat arrays (`float array`
might not be a flat array on some systems).
This fixes a bug where `Vec<f32>`s create in rust would be converted to
arrays of boxed floats in ocaml.
@zshipko zshipko force-pushed the fix-flat-float-array-from-f32-vec branch from 29c200a to 64f9bab Compare March 29, 2024 02:32
@zshipko
Copy link
Owner

zshipko commented Mar 29, 2024

Finally passing CI after merging #136 - thanks!

@zshipko zshipko merged commit b6da5b6 into zshipko:master Mar 29, 2024
28 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants