Skip to content

Commit c6f1027

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

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)