1
0
mirror of https://foundry.openuru.org/gitblit/r/CWE-ou-minkata.git synced 2025-07-18 19:29:09 +00:00

Fix several errors and warnings from GCC compilation

This commit is contained in:
2012-02-09 00:56:03 -08:00
parent e6ebf7ffaf
commit ad66286a17
78 changed files with 318 additions and 331 deletions

View File

@ -103,7 +103,7 @@ inline float plRandom::RandZeroToOne() const
return Rand() * RandNorm();
#else // FAST_Q
const uint32_t kOneExp = 0x3f800000;
register uint32_t temp = kOneExp | (uint32_t(Rand()) >> 9);
uint32_t temp = kOneExp | (uint32_t(Rand()) >> 9);
return (*(float*)&temp) - 1.f;
#endif // FAST_Q
}
@ -117,7 +117,7 @@ inline float plRandom::RandMinusOneToOne() const
return RandZeroToOne() * 2.f - 1.f;
#else // FAST_Q
const uint32_t kTwoExp = 0x40000000;
register uint32_t temp = kTwoExp | (uint32_t(Rand()) >> 9);
uint32_t temp = kTwoExp | (uint32_t(Rand()) >> 9);
return (*(float*)&temp) - 3.f;
#endif // FAST_Q
}