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

Invalid results when converting 64 bit vectors to binary #2590

Closed
Oldes opened this issue Feb 15, 2024 · 1 comment
Closed

Invalid results when converting 64 bit vectors to binary #2590

Oldes opened this issue Feb 15, 2024 · 1 comment

Comments

@Oldes
Copy link
Owner

Oldes commented Feb 15, 2024

Current behaviour:

>> to binary! #[i8! [1 2 3]]
== #{010203}

>> to binary! #[i16! [1 2 3]]
== #{010002000300}

>> to binary! #[i32! [1 2 3]]
== #{010000000200000003000000}

>> to binary! #[i64! [1 2 3]]
== #{010203} ;<========= Wrong!

>> to binary! #[f32! [1 2 3]]
== #{0000803F0000004000004040}

>> to binary! #[f64! [1 2 3]]
== #{000000} ;<========= Wrong!

As it is in unit tests, it must be some regression.

@Oldes
Copy link
Owner Author

Oldes commented Feb 15, 2024

The regression is from this commit: Oldes/Rebol3@9715d12

Oldes added a commit to Oldes/Rebol3 that referenced this issue Feb 15, 2024
Oldes added a commit to Oldes/Rebol3 that referenced this issue Feb 16, 2024
Oldes added a commit to Oldes/Rebol3 that referenced this issue Feb 17, 2024
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

1 participant