version 1.16 | | version 1.17 |
---|
| | |
/* | | /* |
* static char *rcsid_utils_c = | | * static char *rcsid_utils_c = |
* "$Id: utils.c,v 1.16 2005/05/29 15:37:53 tchize Exp $"; | | * "$Id: utils.c,v 1.17 2005/07/14 09:18:55 akirschbaum Exp $"; |
*/ | | */ |
| | |
/* | | /* |
| | |
((diff > 2) ? (base = 20) : (base = 50)); /* d2 and d3 are corner cases */ | | ((diff > 2) ? (base = 20) : (base = 50)); /* d2 and d3 are corner cases */ |
| | |
if (max < 1 || diff < 1) { | | if (max < 1 || diff < 1) { |
LOG(llevError, "Calling random_roll with min=%d max=%d\n", min, max); | | #ifndef WIN32 |
| | LOG(llevError, "Calling random_roll with min=%lld max=%lld\n", min, max); |
| | #else |
| | LOG(llevError, "Calling random_roll with min=%I64d max=%I64d\n", min, max); |
| | #endif |
return(min); /* avoids a float exception */ | | return(min); /* avoids a float exception */ |
} | | } |
| | |