Skip to content

Commit

Permalink
Added 32-bit fixes from QDP-JIT issue #22
Browse files Browse the repository at this point in the history
  • Loading branch information
Balint Joo committed Mar 3, 2023
1 parent e4ffe48 commit 7a4bd2c
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions lib/qdp_random.cc
Original file line number Diff line number Diff line change
Expand Up @@ -26,10 +26,10 @@ namespace RNG
LatticeSeed *lattice_ran_mult;

//! Find the number of bits required to represent x.
int numbits(int x)
int numbits(size_t x)
{
int num = 1;
int iceiling = 2;
size_t iceiling = 2;
while (iceiling <= x)
{
num++;
Expand Down Expand Up @@ -133,7 +133,7 @@ namespace RNG
Seed aa;
Seed aamult;

int ibit = Layout::vol();
size_t ibit = Layout::vol();
aa = ran_mult;
// ran_mult_n = 1; // produces def ran_mult_n = ran_mult^{vol}
ran_mult_n = ran_mult; // produces def ran_mult_n = ran_mult^{vol+1}
Expand Down

0 comments on commit 7a4bd2c

Please sign in to comment.