Fix warnings.

This commit is contained in:
castano 2007-12-17 06:27:17 +00:00
parent 364663c49d
commit 3f30093d02
2 changed files with 2 additions and 2 deletions

View File

@ -15,7 +15,7 @@ const uint16 Rand48::c0 = 0x000B;
/// Get a random seed based on the current time.
uint Rand::randomSeed()
{
return time(NULL);
return (uint)time(NULL);
}

View File

@ -64,7 +64,7 @@ namespace
// Rule 2 needs no previous results
if (l == m) {
return powf(-1.0f, m) * doubleFactorial(2 * m - 1) * powf(1 - x*x, 0.5f * m);
return powf(-1.0f, float(m)) * doubleFactorial(2 * m - 1) * powf(1 - x*x, 0.5f * m);
}
// Rule 3 requires the result for the same argument of the previous band