Skip to content

Commit 9042b9a

Browse files
committed
shell: do not alias atomic_t
Previously, a `uint32_t` was aliased as an `atomic_t`. However, with zephyrproject-rtos#39531, `atomic_t` is now a `long` under the hood, which is 64-bit on 64-bit platforms. Fixes zephyrproject-rtos#40369 Signed-off-by: Christopher Friedt <[email protected]>
1 parent 43622e0 commit 9042b9a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

include/shell/shell.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -659,7 +659,7 @@ BUILD_ASSERT((sizeof(struct shell_backend_ctx_flags) == sizeof(uint32_t)),
659659
* @internal @brief Union for internal shell usage.
660660
*/
661661
union shell_backend_cfg {
662-
uint32_t value;
662+
atomic_t value;
663663
struct shell_backend_config_flags flags;
664664
};
665665

0 commit comments

Comments
 (0)