diff options
Diffstat (limited to 'src/random.h')
-rw-r--r-- | src/random.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/random.h b/src/random.h index 911aac08ca..6223da0377 100644 --- a/src/random.h +++ b/src/random.h @@ -200,7 +200,7 @@ public: return rand64() >> (64 - bits); } else { if (bitbuf_size < bits) FillBitBuffer(); - uint64_t ret = bitbuf & (~(uint64_t)0 >> (64 - bits)); + uint64_t ret = bitbuf & (~uint64_t{0} >> (64 - bits)); bitbuf >>= bits; bitbuf_size -= bits; return ret; |