AtomVM icon indicating copy to clipboard operation
AtomVM copied to clipboard

Fix term asserts

Open jgonet opened this issue 7 months ago • 0 comments

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

jgonet avatar Jun 16 '25 17:06 jgonet