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 in bs_create_bin #832

Merged
merged 1 commit into from
Oct 3, 2023

Conversation

bettio
Copy link
Collaborator

@bettio bettio commented Oct 3, 2023

Just replace avm_int_t with avm_int64_t which is always a 64-bit integer.

Fixes #827

These changes are made under both the "Apache 2.0" and the "GNU Lesser General
Public License 2.1 or later" license terms (dual license).

SPDX-License-Identifier: Apache-2.0 OR LGPL-2.1-or-later

Fix bug when creating a binary using a 64-bit int on a 32-bit CPU.

Signed-off-by: Davide Bettio <davide@uninstall.it>
@bettio bettio force-pushed the fix-int64-bug-in-bs_create_bin branch from 2b92546 to 7c50f9e Compare October 3, 2023 15:30
@bettio bettio marked this pull request as ready for review October 3, 2023 15:30
@bettio bettio merged commit 8957f97 into atomvm:master Oct 3, 2023
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.

Discrepancy between 32 and 64 bit when building a binary
2 participants