diff options
Diffstat (limited to 'src/lib/utils/mem_ops.h')
-rw-r--r-- | src/lib/utils/mem_ops.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/lib/utils/mem_ops.h b/src/lib/utils/mem_ops.h index b99ec4bf0..7530d5f88 100644 --- a/src/lib/utils/mem_ops.h +++ b/src/lib/utils/mem_ops.h @@ -212,7 +212,7 @@ template<typename T> inline bool same_mem(const T* p1, const T* p2, size_t n) volatile T difference = 0; for(size_t i = 0; i != n; ++i) - difference |= (p1[i] ^ p2[i]); + difference = difference | (p1[i] ^ p2[i]); return difference == 0; } |