Skip to content

Fix term asserts #1717

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

Merged
merged 1 commit into from
Jun 17, 2025
Merged

Fix term asserts #1717

merged 1 commit into from
Jun 17, 2025

Conversation

jgonet
Copy link
Contributor

@jgonet jgonet commented Jun 16, 2025

memory.c had a missing semicolon, get/put_tuple_element in term.h unpacked header directly instead of using function. Additionally, first condition is already checked by term_is_tuple().

There's one unfixed assert TERM_DEBUG_ASSERT((t & 0x3) == 0x2);
but fixing it would create conflicts with #1701 (changes magic values to macros).

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

memory.c had a missing semicolon, get/put_tuple_element in term.h
unpacked header directly instead of using function.
Additionally, first condition is already checked by term_is_tuple().

There's one unfixed assert
TERM_DEBUG_ASSERT((t & 0x3) == 0x2);
but fixing it would create conflicts with atomvm#1701 (changes magic values to macros).

Signed-off-by: Jakub Gonet <jakub.gonet@swmansion.com>
@bettio bettio merged commit 507345f into atomvm:main Jun 17, 2025
177 of 207 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