Skip to content

Commit

Permalink
Use long-long integer constant as the left-hand side is long long
Browse files Browse the repository at this point in the history
  • Loading branch information
tautschnig committed Jun 20, 2018
1 parent 4726e86 commit c75dc48
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/util/mp_arith.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -302,8 +302,8 @@ mp_integer logic_left_shift(
llong_t result=a.to_long()<<shift;
if(true_size<(sizeof(llong_t)*8))
{
llong_t sign=(1L<<(true_size-1))&result;
llong_t mask=(1L<<true_size)-1;
llong_t sign=(1LL<<(true_size-1))&result;
llong_t mask=(1LL<<true_size)-1;
// Sign-fill out-of-range bits:
if(sign==0)
result&=mask;
Expand Down

0 comments on commit c75dc48

Please sign in to comment.