AtomVM
AtomVM copied to clipboard
Fix term asserts
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