commit | 6670f86474d8e4c141d048b4417695c927d781c8 | [log] [tgz] |
---|---|---|
author | David Pursell <dpursell@google.com> | Fri Jan 17 18:59:49 2020 +0000 |
committer | CQ bot account: commit-bot@chromium.org <commit-bot@chromium.org> | Fri Jan 17 18:59:49 2020 +0000 |
tree | 3000a4a48e4875e2109dce8daea54c8627e324af | |
parent | e451985f473d1e1f769311e427a618aaf6965b15 [diff] |
[fbl][bitfield] fix uint8_t bitfields Bitwise operators on types smaller than int implicitly promotes to int, which was triggering a compiler error when we then tried to assign that promoted int back to a smaller type. Since we have static assertions that prevent us from shifting too far, it's safe to always cast the promoted int back to our type T. Bug: 35747 Test: new unittests failed to compile previously, pass now Change-Id: I4f0075f023739a3a233b8d3351071ab979e442f6
Pink + Purple == Fuchsia (a new operating system)
Fuchsia is a modular, capability-based operating system. Fuchsia runs on modern 64-bit Intel and ARM processors.
Fuchsia is an open source project with a code of conduct that we expect everyone who interacts with the project to respect.
See Getting Started.
See fuchsia.dev.