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

Use byteorder crate for writing f64 little endian #43

Merged
merged 2 commits into from
Apr 15, 2019
Merged

Use byteorder crate for writing f64 little endian #43

merged 2 commits into from
Apr 15, 2019

Conversation

whmountains
Copy link
Contributor

@whmountains whmountains commented Apr 15, 2019

This has two benefits:

  • Extract some shared functionality to a centralized crate.
  • Get rid of unsafe code. (byteorder's implementation does not use unsafe)

Closes #42, since this PR removes the only use of unsafe code in the library and dependencies.

@SiegeLord
Copy link
Owner

Hmm, well byteorder certainly uses unsafe, so that's not really a difference per se. Does this actually fix the crash for you?

Either way, this seems like a nice change. Thanks!

@SiegeLord SiegeLord merged commit 6ff03b8 into SiegeLord:master Apr 15, 2019
@whmountains
Copy link
Contributor Author

No, I can't yet confirm that this change fixes the crash. The new version is deployed as we speak and we'll see if it crashes within the next few days.

You're right, I was over-generalizing when I said that byteorder doesn't use unsafe. What I meant to say that the particular code-path used to write a f64 seems not to contain unsafe code.

Thanks for merging!

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.

Possible bug in ARM.
2 participants