Skip to content

Commit 92ee1e8

Browse files
sec: fix ambiguous bitmask in s3g
1 parent a5a8b68 commit 92ee1e8

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/security/s3g.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -413,7 +413,7 @@ static void s3g_PRE_MUL_P(std::array<std::array<uint64_t, 256>, 8>& PM, uint64_t
413413
uint64_t a = PM[(i - 1) >> 3][1 << ((i - 1) & 0x7)];
414414
PM[i >> 3][1 << (i & 0x7)] = a << 1;
415415
// If the leftmost bit...
416-
static constexpr uint64_t leftmost_bit_mask = 1L << 63;
416+
static constexpr uint64_t leftmost_bit_mask = 1UL << 63UL;
417417
if (a & leftmost_bit_mask) {
418418
PM[i >> 3][1 << (i & 0x7)] ^= c;
419419
}

0 commit comments

Comments
 (0)