Fix warnings.
This commit is contained in:
parent
364663c49d
commit
3f30093d02
@ -15,7 +15,7 @@ const uint16 Rand48::c0 = 0x000B;
|
|||||||
/// Get a random seed based on the current time.
|
/// Get a random seed based on the current time.
|
||||||
uint Rand::randomSeed()
|
uint Rand::randomSeed()
|
||||||
{
|
{
|
||||||
return time(NULL);
|
return (uint)time(NULL);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
@ -64,7 +64,7 @@ namespace
|
|||||||
|
|
||||||
// Rule 2 needs no previous results
|
// Rule 2 needs no previous results
|
||||||
if (l == m) {
|
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
|
// Rule 3 requires the result for the same argument of the previous band
|
||||||
|
Loading…
Reference in New Issue
Block a user