...it should be a compile error to reference a constant in the RHS of the declaration of that same constant...

This commit is contained in:
zeromus 2009-05-04 05:49:35 +00:00
parent 35ce5d8473
commit 820cb84717
1 changed files with 1 additions and 1 deletions

View File

@ -97,7 +97,7 @@ static void MovieTime(void) {
//but, we were imagining that one day we might need more precision
const u32 arm9rate_unitsperframe = 560190<<1;
const u32 arm9rate_unitspersecond = (u32)(arm9rate_unitspersecond * 59.8261);
const u32 arm9rate_unitspersecond = (u32)(arm9rate_unitsperframe * 59.8261);
const u64 noon = (u64)arm9rate_unitspersecond * 60 * 60 * 12;
u64 frameCycles = (u64)arm9rate_unitsperframe * currFrameCounter;