diff options
| author | Martin Ridgers <[email protected]> | 2021-09-29 15:47:35 +0200 |
|---|---|---|
| committer | Martin Ridgers <[email protected]> | 2021-09-29 16:57:32 +0200 |
| commit | 6d99b2886e2712df9f42c9fcb388ae7a292c1464 (patch) | |
| tree | 04e8701f3d875851e6ee3ed93a10b02a20cf4a99 | |
| parent | Log2 could be used uninitialised if mask passed argument to BitScanRev() was 0 (diff) | |
| download | zen-6d99b2886e2712df9f42c9fcb388ae7a292c1464.tar.xz zen-6d99b2886e2712df9f42c9fcb388ae7a292c1464.zip | |
Added parentheseses' around the left-hand side of a bit-wise or.
| -rw-r--r-- | zencore/include/zencore/uid.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/zencore/include/zencore/uid.h b/zencore/include/zencore/uid.h index f4e9ab65a..d25aa8059 100644 --- a/zencore/include/zencore/uid.h +++ b/zencore/include/zencore/uid.h @@ -74,7 +74,7 @@ struct Oid size_t operator()(const Oid& id) const { const size_t seed = id.OidBits[0]; - return (seed << 6) + (seed >> 2) + 0x9e3779b9 + uint64_t(id.OidBits[1]) | (uint64_t(id.OidBits[2]) << 32); + return ((seed << 6) + (seed >> 2) + 0x9e3779b9 + uint64_t(id.OidBits[1])) | (uint64_t(id.OidBits[2]) << 32); } }; |