Commit cf3dda78 authored by Paul's avatar Paul
Browse files

Dont use signed integers with bitwise operators

parent 6b588e3b
...@@ -16,9 +16,9 @@ struct xorshf96_generator ...@@ -16,9 +16,9 @@ struct xorshf96_generator
constexpr T operator()() constexpr T operator()()
{ {
x ^= x << 16; x ^= x << 16U;
x ^= x >> 5; x ^= x >> 5U;
x ^= x << 1; x ^= x << 1U;
unsigned long t = x; unsigned long t = x;
x = y; x = y;
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment