X-Git-Url: http://nsz.repo.hu/git/?a=blobdiff_plain;f=src%2Fprng%2F__rand48_step.c;h=961d30fc9161e48dde6fc64a9c8aa10f19f5eee5;hb=04b8360adbb6487f61aa0c00e53ec3a90a5a0d29;hp=755b4f2f3903e33357684d33d27f8b2e4de3d2ae;hpb=0b44a0315b47dd8eced9f3b7f31580cf14bbfc01;p=musl diff --git a/src/prng/__rand48_step.c b/src/prng/__rand48_step.c index 755b4f2f..961d30fc 100644 --- a/src/prng/__rand48_step.c +++ b/src/prng/__rand48_step.c @@ -1,11 +1,10 @@ -#include -#include +#include uint64_t __rand48_step(unsigned short *xi, unsigned short *lc) { uint64_t a, x; - x = xi[0] | xi[1]<<16 | xi[2]+0ULL<<32; - a = lc[0] | lc[1]<<16 | lc[2]+0ULL<<32; + x = xi[0] | xi[1]+0U<<16 | xi[2]+0ULL<<32; + a = lc[0] | lc[1]+0U<<16 | lc[2]+0ULL<<32; x = a*x + lc[3]; xi[0] = x; xi[1] = x>>16;