Warning fixes

This commit is contained in:
Henrik Rydgard committed 2012-11-05 14:38:55 +01:00
1 parent b96859828f
commit ddfbd18370
3 files changed
+4 -7

No files matched your search

+1 -1
View File
@@ -826,7 +826,7 @@ namespace MIPSInt
{
switch ((op >> 16) & 0x1f)
{
case 1: d[i] = currentMIPS->rng.R32(); break; // vrndi - TODO: copy bits instead?
case 1: d[i] = (float)currentMIPS->rng.R32(); break; // vrndi - TODO: copy bits instead?
case 2: d[i] = 1.0f + ((float)currentMIPS->rng.R32() / 0xFFFFFFFF); break; // vrndf1 TODO: make more accurate
case 3: d[i] = 2.0f + 2 * ((float)currentMIPS->rng.R32() / 0xFFFFFFFF); break; // vrndf2 TODO: make more accurate
case 4: d[i] = 0.0f; // Should not get here