pike.git/
src/
builtin.cmod
Branch:
Tag:
Non-build tags
All tags
No tags
2010-10-30
2010-10-30 19:54:04 by Martin Stjernholm <mast@lysator.liu.se>
a5ecabdc809cd83be7688876f9e0a6386fab0b67 (
3
lines) (+
2
/-
1
)
[
Show
|
Annotate
]
Branch:
7.9
Fixed some code that only makes sense with 64 bit INT_TYPE.
1372:
PIKEFUN int random(int i) { if(i <= 0) RETURN 0;
-
#
ifdef
AUTO_BIGNUM
+
#
if
defined (
AUTO_BIGNUM
) && SIZEOF_INT_TYPE > 4
if(i >> 31) { unsigned INT_TYPE a = my_rand(); unsigned INT_TYPE b = my_rand();