Skip to content

Commit c8e3771

Browse files
committed
Merge remote-tracking branch 'origin/main' into seed_encoding_11
2 parents 1c3be65 + 012d4fd commit c8e3771

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

interface/util/ctr_u128_t.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ void counter_init(ctr_u128_t *ctr, uint8_t *iv, size_t iv_len) {
2828
ctr->iv_len = iv_len;
2929

3030
if (iv_len > 8 && iv_len < COUNTER_SIZE) {
31-
ctr->limit = 1UL << (COUNTER_SIZE - iv_len) * 8;
31+
ctr->limit = 1ULL << (COUNTER_SIZE - iv_len) * 8;
3232
}
3333

3434
memcpy(ctr->original_counter, iv, iv_len);

0 commit comments

Comments
 (0)