Skip to content

term_to_int64: Fix missing return on 32-bit#2214

Merged
bettio merged 1 commit intoatomvm:mainfrom
bettio:fix-term_to_int64
Mar 18, 2026
Merged

term_to_int64: Fix missing return on 32-bit#2214
bettio merged 1 commit intoatomvm:mainfrom
bettio:fix-term_to_int64

Conversation

@bettio
Copy link
Copy Markdown
Collaborator

@bettio bettio commented Mar 18, 2026

On 32-bit platforms BOXED_TERMS_REQUIRED_FOR_INT differs from BOXED_TERMS_REQUIRED_FOR_INT64, so the if/else-if could fall through without returning. Restructure the control flow so every path returns a value, fixing -Werror=return-type on 32-bit archs.

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

On 32-bit platforms BOXED_TERMS_REQUIRED_FOR_INT differs from
BOXED_TERMS_REQUIRED_FOR_INT64, so the if/else-if could fall
through without returning. Restructure the control flow so every
path returns a value, fixing -Werror=return-type on 32-bit archs.

Signed-off-by: Davide Bettio <davide@uninstall.it>
@bettio bettio merged commit a9454d0 into atomvm:main Mar 18, 2026
146 of 148 checks passed
bettio added a commit that referenced this pull request Mar 19, 2026
Add I2C support to STM32 platform

Continuation of:
- #2118
- #2111
- #2112

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
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.

1 participant