Skip to content

Commit e389d29

Browse files
committed
Use long-long integer constant as the left-hand side is long long
1 parent 61ac3b9 commit e389d29

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Diff for: src/util/mp_arith.cpp

+2-2
Original file line numberDiff line numberDiff line change
@@ -302,8 +302,8 @@ mp_integer logic_left_shift(
302302
llong_t result=a.to_long()<<shift;
303303
if(true_size<(sizeof(llong_t)*8))
304304
{
305-
llong_t sign=(1L<<(true_size-1))&result;
306-
llong_t mask=(1L<<true_size)-1;
305+
llong_t sign=(1LL<<(true_size-1))&result;
306+
llong_t mask=(1LL<<true_size)-1;
307307
// Sign-fill out-of-range bits:
308308
if(sign==0)
309309
result&=mask;

0 commit comments

Comments
 (0)