aboutsummaryrefslogtreecommitdiffstats
path: root/src/lib/utils/mem_ops.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/lib/utils/mem_ops.cpp')
-rw-r--r--src/lib/utils/mem_ops.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/lib/utils/mem_ops.cpp b/src/lib/utils/mem_ops.cpp
index 21f44fb26..416497086 100644
--- a/src/lib/utils/mem_ops.cpp
+++ b/src/lib/utils/mem_ops.cpp
@@ -69,7 +69,7 @@ uint8_t ct_compare_u8(const uint8_t x[],
volatile uint8_t difference = 0;
for(size_t i = 0; i != len; ++i)
- difference |= (x[i] ^ y[i]);
+ difference = difference | (x[i] ^ y[i]);
return CT::Mask<uint8_t>::is_zero(difference).value();
}