diff options
author | Dawid Niedzwiecki <dn@semihalf.com> | 2021-12-09 15:09:09 +0100 |
---|---|---|
committer | Commit Bot <commit-bot@chromium.org> | 2021-12-17 08:04:58 +0000 |
commit | c346481f4bcc5aa52662e4dffa2c17d7b5b18509 (patch) | |
tree | be00d40db66c9887a5f9c9882dc10277089bba39 /core | |
parent | 9b972a0f21c95d49ffbe2e42adb7400714eda516 (diff) | |
download | chrome-ec-c346481f4bcc5aa52662e4dffa2c17d7b5b18509.tar.gz |
atomic: cast to unsigned when shifting
Since atomic_t is a signed type, cast the atomic variable to an unsigned
type when it is used around shifting, because it is safer and not
implementation-dependent.
BUG=b:207082842
TEST=make buildall && zmake testall
BRANCH=main
Signed-off-by: Dawid Niedzwiecki <dn@semihalf.com>
Change-Id: I58011b3217bbe03d85ecac40adfa3723a76f18e4
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/3330200
Reviewed-by: Jack Rosenthal <jrosenth@chromium.org>
Commit-Queue: Dawid Niedzwiecki <dawidn@google.com>
Diffstat (limited to 'core')
0 files changed, 0 insertions, 0 deletions