1
0
mirror of https://github.com/openbsd/src.git synced 2024-12-21 23:18:00 -08:00

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
This commit is contained in:
tb 2024-12-19 21:05:46 +00:00
parent 98e9fa9caf
commit 3d8e7e8c72

View File

@ -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;