From 48551e625306164f102a647c7cfd4baf05e95900 Mon Sep 17 00:00:00 2001 From: tb <> Date: Thu, 19 Dec 2024 21:05:46 +0000 Subject: ec_mult: use 1ULL to avoid C4334 warning on Visual Studio The shift is between 0 and 5 bits, so it doesn't matter, but VS is short for very st...ubborn as are its users when it comes to reporting non-issues --- src/lib/libcrypto/ec/ec_mult.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src') diff --git a/src/lib/libcrypto/ec/ec_mult.c b/src/lib/libcrypto/ec/ec_mult.c index e7646842f3..d11086de64 100644 --- a/src/lib/libcrypto/ec/ec_mult.c +++ b/src/lib/libcrypto/ec/ec_mult.c @@ -1,4 +1,4 @@ -/* $OpenBSD: ec_mult.c,v 1.55 2024/12/07 13:49:43 tb Exp $ */ +/* $OpenBSD: ec_mult.c,v 1.56 2024/12/19 21:05:46 tb Exp $ */ /* * Originally written by Bodo Moeller and Nils Larsch for the OpenSSL project. */ @@ -275,7 +275,7 @@ ec_wnaf_new(const EC_GROUP *group, const EC_POINT *point, const BIGNUM *bn, if (!ec_compute_wnaf(bn, wnaf->digits, wnaf->num_digits)) goto err; - wnaf->num_multiples = 1 << (ec_window_bits(bn) - 1); + wnaf->num_multiples = 1ULL << (ec_window_bits(bn) - 1); if ((wnaf->multiples = calloc(wnaf->num_multiples, sizeof(*wnaf->multiples))) == NULL) goto err; -- cgit v1.2.3-55-g6feb