pike.git/
src/
builtin.cmod
Branch:
Tag:
Non-build tags
All tags
No tags
2016-03-17
2016-03-17 15:40:02 by Martin Nilsson <nilsson@fastmail.com>
7341a9bfcd9a813f30742b9eeecb1f301a65ba20 (
3
lines) (+
2
/-
1
)
[
Show
|
Annotate
]
Branch:
8.1
Fix random on ints between 32 and 64 bits.
2108:
{ if(limit <= 1) return 0; int bits = my_log2(limit-1)+1;
-
int
mask = (
1
<<bits)-1;
+
INT64
mask = (
1L
<<bits)-1;
for(int i=0; i<1000; i++) { if(THIS->buffer_bits < bits)