Avoid undefined behaviour in std::byte operators (LWG 2950)
authorJonathan Wakely <jwakely@redhat.com>
Tue, 18 Jun 2019 11:39:43 +0000 (12:39 +0100)
committerJonathan Wakely <redi@gcc.gnu.org>
Tue, 18 Jun 2019 11:39:43 +0000 (12:39 +0100)
commit0c65926ffa960ddbe7df9ea86328f8905df861cf
tree597b8d18820d74dc4f718ec184bdf2ab2798d236
parent5ed12b58ef022b5186edc6c31eb05addc828fd8b
Avoid undefined behaviour in std::byte operators (LWG 2950)

* include/c_global/cstddef (std::byte): Perform arithmetic operations
in unsigned int to avoid promotion (LWG 2950).

From-SVN: r272415
libstdc++-v3/ChangeLog
libstdc++-v3/include/c_global/cstddef