aboutsummaryrefslogtreecommitdiff
path: root/deps/openssl/openssl/crypto/modes/ctr128.c
diff options
context:
space:
mode:
Diffstat (limited to 'deps/openssl/openssl/crypto/modes/ctr128.c')
-rw-r--r--deps/openssl/openssl/crypto/modes/ctr128.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/deps/openssl/openssl/crypto/modes/ctr128.c b/deps/openssl/openssl/crypto/modes/ctr128.c
index bcafd6b6bf..d4b22728e6 100644
--- a/deps/openssl/openssl/crypto/modes/ctr128.c
+++ b/deps/openssl/openssl/crypto/modes/ctr128.c
@@ -100,7 +100,7 @@ static void ctr128_inc_aligned(unsigned char *counter)
--n;
d = data[n] += c;
/* did addition carry? */
- c = ((d - c) ^ d) >> (sizeof(size_t) * 8 - 1);
+ c = ((d - c) & ~d) >> (sizeof(size_t) * 8 - 1);
} while (n);
}
#endif