Skip to content

Commit

Permalink
shell: do not alias atomic_t
Browse files Browse the repository at this point in the history
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]>
  • Loading branch information
cfriedt authored and carlescufi committed Nov 17, 2021
1 parent d2a7d29 commit c6f1027
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion include/shell/shell.h
Original file line number Diff line number Diff line change
Expand Up @@ -659,7 +659,7 @@ BUILD_ASSERT((sizeof(struct shell_backend_ctx_flags) == sizeof(uint32_t)),
* @internal @brief Union for internal shell usage.
*/
union shell_backend_cfg {
uint32_t value;
atomic_t value;
struct shell_backend_config_flags flags;
};

Expand Down

0 comments on commit c6f1027

Please sign in to comment.