diff options
author | Clément Foucault <foucault.clem@gmail.com> | 2020-08-26 21:09:32 +0300 |
---|---|---|
committer | Clément Foucault <foucault.clem@gmail.com> | 2020-08-30 14:11:02 +0300 |
commit | bb530a77b638d1ccab779e1f43675030597f995e (patch) | |
tree | b54a45f93a0073a529db0d15d5a43b1c5c2c0947 /source/blender/blenlib/BLI_utildefines.h | |
parent | 83f144b1769d75767b838ded4cceed7abbab1a90 (diff) |
BLI_utildefines: Fix assignment in binary ops for ENUM_OPERATORS
That was an overlook from the review when we introduced it.
Diffstat (limited to 'source/blender/blenlib/BLI_utildefines.h')
-rw-r--r-- | source/blender/blenlib/BLI_utildefines.h | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/source/blender/blenlib/BLI_utildefines.h b/source/blender/blenlib/BLI_utildefines.h index 2699f2498ac..acfa77ecf31 100644 --- a/source/blender/blenlib/BLI_utildefines.h +++ b/source/blender/blenlib/BLI_utildefines.h @@ -765,15 +765,15 @@ extern bool BLI_memory_is_zero(const void *arr, const size_t arr_size); # define ENUM_OPERATORS(_enum_type) \ inline constexpr _enum_type operator|(_enum_type a, _enum_type b) \ { \ - return a = static_cast<_enum_type>(static_cast<int>(a) | b); \ + return static_cast<_enum_type>(static_cast<int>(a) | b); \ } \ inline constexpr _enum_type operator&(_enum_type a, _enum_type b) \ { \ - return a = static_cast<_enum_type>(static_cast<int>(a) & b); \ + return static_cast<_enum_type>(static_cast<int>(a) & b); \ } \ inline constexpr _enum_type operator~(_enum_type a) \ { \ - return a = static_cast<_enum_type>(~static_cast<int>(a)); \ + return static_cast<_enum_type>(~static_cast<int>(a)); \ } \ inline _enum_type &operator|=(_enum_type &a, _enum_type b) \ { \ |