...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:
parent
35ce5d8473
commit
820cb84717
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue